[llvm] e197b95 - [RISCV] Fix typo in call to clearFeatureBits.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 6 12:19:34 PST 2024
Author: Craig Topper
Date: 2024-02-06T12:19:27-08:00
New Revision: e197b957ce1061cb1bfbd586b703065367cce5dc
URL: https://github.com/llvm/llvm-project/commit/e197b957ce1061cb1bfbd586b703065367cce5dc
DIFF: https://github.com/llvm/llvm-project/commit/e197b957ce1061cb1bfbd586b703065367cce5dc.diff
LOG: [RISCV] Fix typo in call to clearFeatureBits.
We had "+zca" instead of "zca". The previous line used "c", not "+c".
This may not be a functional change. I think the function we pass this
to strips any '+' or '-'.
Added:
Modified:
llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
index 4063719582bb9d..d83979a873f2a3 100644
--- a/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+++ b/llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
@@ -2893,7 +2893,7 @@ bool RISCVAsmParser::parseDirectiveOption() {
getTargetStreamer().emitDirectiveOptionNoRVC();
clearFeatureBits(RISCV::FeatureStdExtC, "c");
- clearFeatureBits(RISCV::FeatureStdExtZca, "+zca");
+ clearFeatureBits(RISCV::FeatureStdExtZca, "zca");
return false;
}
More information about the llvm-commits
mailing list