Skip to content

Commit

Permalink
Fix preprocessor expression in AstExporter.cpp
Browse files Browse the repository at this point in the history
The ARM Sve builtins (SveCount, SveBool, etc.) are only available
in LLVM 17 and later, so CLANG_VERSION_MAJOR expression needs to
reflect that.
  • Loading branch information
thedataking committed Nov 9, 2023
1 parent 2e4bcab commit c1b5e94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2rust-ast-exporter/src/AstExporter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ class TypeEncoder final : public TypeVisitor<TypeEncoder> {
case BuiltinType::Bool: return TagBool;
case BuiltinType::WChar_S: return TagSWChar;
case BuiltinType::WChar_U: return TagUWChar;
#if CLANG_VERSION_MAJOR >= 16
#if CLANG_VERSION_MAJOR >= 17
case BuiltinType::SveCount: return TagSveCount;
case BuiltinType::SveBool: return TagSveBool;
case BuiltinType::SveBoolx2: return TagSveBoolx2;
Expand Down

0 comments on commit c1b5e94

Please sign in to comment.