[llvm-exegesis] Initialize const bitvector member
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 14 Jan 2020 01:31:07 +0000 (17:31 -0800)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 14 Jan 2020 01:32:30 +0000 (17:32 -0800)
This causes an error with older versions of clang: constructor for
'llvm::exegesis::InstructionsCache' must explicitly initialize the const
member 'BVC'

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

index 487f6641d5079766b8c0775f65143986497911d0..79f513778f8f74d86e47cd009c6b325e74f29b66 100644 (file)
@@ -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];