[llvm] 09db6e3 - [llvm-exegesis] Initialize const bitvector member

Jonas Devlieghere via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 13 17:32:36 PST 2020


Author: Jonas Devlieghere
Date: 2020-01-13T17:32:30-08:00
New Revision: 09db6e320985f2bee22634049857224e0a5e58f8

URL: https://github.com/llvm/llvm-project/commit/09db6e320985f2bee22634049857224e0a5e58f8
DIFF: https://github.com/llvm/llvm-project/commit/09db6e320985f2bee22634049857224e0a5e58f8.diff

LOG: [llvm-exegesis] Initialize const bitvector member

This causes an error with older versions of clang: constructor for
'llvm::exegesis::InstructionsCache' must explicitly initialize the const
member 'BVC'

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
index 487f6641d507..79f513778f8f 100644
--- a/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
+++ b/llvm/tools/llvm-exegesis/lib/MCInstrDescView.cpp
@@ -301,7 +301,7 @@ void Instruction::dump(const MCRegisterInfo &RegInfo,
 
 InstructionsCache::InstructionsCache(const MCInstrInfo &InstrInfo,
                                      const RegisterAliasingTrackerCache &RATC)
-    : InstrInfo(InstrInfo), RATC(RATC) {}
+    : InstrInfo(InstrInfo), RATC(RATC), BVC() {}
 
 const Instruction &InstructionsCache::getInstr(unsigned Opcode) const {
   auto &Found = Instructions[Opcode];


        


More information about the llvm-commits mailing list