[llvm] 11bbfa1 - Make global variable const. NFC.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 21 08:41:51 PDT 2023
Author: Benjamin Kramer
Date: 2023-08-21T17:40:40+02:00
New Revision: 11bbfa12bd94b2c2c15c8cbf3fe247ed2577c677
URL: https://github.com/llvm/llvm-project/commit/11bbfa12bd94b2c2c15c8cbf3fe247ed2577c677
DIFF: https://github.com/llvm/llvm-project/commit/11bbfa12bd94b2c2c15c8cbf3fe247ed2577c677.diff
LOG: Make global variable const. NFC.
Added:
Modified:
llvm/utils/TableGen/InstrInfoEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/InstrInfoEmitter.cpp b/llvm/utils/TableGen/InstrInfoEmitter.cpp
index a16d9470cb087f..cfbea029020cc4 100644
--- a/llvm/utils/TableGen/InstrInfoEmitter.cpp
+++ b/llvm/utils/TableGen/InstrInfoEmitter.cpp
@@ -801,7 +801,7 @@ void InstrInfoEmitter::emitFeatureVerifier(raw_ostream &OS,
OS << "},\n";
}
OS << " };\n"
- << " static " << getMinimalTypeForRange(FeatureBitsets.size())
+ << " static constexpr " << getMinimalTypeForRange(FeatureBitsets.size())
<< " RequiredFeaturesRefs[] = {\n";
unsigned InstIdx = 0;
for (const CodeGenInstruction *Inst : Target.getInstructionsByEnumValue()) {
More information about the llvm-commits
mailing list