From f28791471465c1ac5f440e9da8a36626c55ea7a8 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Mon, 13 Jan 2020 17:31:07 -0800 Subject: [PATCH] [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' --- tools/llvm-exegesis/lib/MCInstrDescView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/llvm-exegesis/lib/MCInstrDescView.cpp b/tools/llvm-exegesis/lib/MCInstrDescView.cpp index 487f6641d50..79f513778f8 100644 --- a/tools/llvm-exegesis/lib/MCInstrDescView.cpp +++ b/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];