aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorLuke Lau <luke@igalia.com>2024-01-08 22:11:54 +0700
committerGitHub <noreply@github.com>2024-01-08 22:11:54 +0700
commit16cd344380aa89a4bc47939ae65fd59fe8c77181 (patch)
tree786deb501ab3af3eab99cfd204b6b511be472a56 /clang/lib/Lex/ModuleMap.cpp
parent97e3220d6312ae00bcbe08673f218bd0f705776b (diff)
downloadllvm-16cd344380aa89a4bc47939ae65fd59fe8c77181.zip
llvm-16cd344380aa89a4bc47939ae65fd59fe8c77181.tar.gz
llvm-16cd344380aa89a4bc47939ae65fd59fe8c77181.tar.bz2
[RISCV] Fix collectNonISAExtFeature returning negative extension features (#76962)
collectNonISAExtFeature was returning any negative extension features, e.g. given an input of +zifencei,+m,+a,+save-restore,-zbb,-relax,-zfa It would return +save-restore,-zbb,-relax,-zfa Because negative extensions aren't emitted when calling toFeatureVector(), and so were considered missing. Hence why we still see "-zfa" and "-zfb" in the tests for the full arch string attributes, even though with a full arch string we should be overriding the extensions. This fixes it by using RISCVISAInfo::isSupportedExtensionFeature instead to check if a feature is an ISA extension.
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions