From 615b31d706e78d508c23345b728cc2738f20b59c Mon Sep 17 00:00:00 2001 From: Clement Courbet Date: Wed, 4 Apr 2018 11:45:53 +0000 Subject: [llvm-exegesis] Fix compilation on some clang versions. default initialization of an object of const type 'const llvm::DebugLoc' requires a user-provided default constructor. llvm-svn: 329171 --- llvm/tools/llvm-exegesis/lib/InMemoryAssembler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-exegesis/lib/InMemoryAssembler.cpp') diff --git a/llvm/tools/llvm-exegesis/lib/InMemoryAssembler.cpp b/llvm/tools/llvm-exegesis/lib/InMemoryAssembler.cpp index 3a60d03ccff..7e1e58ff888 100644 --- a/llvm/tools/llvm-exegesis/lib/InMemoryAssembler.cpp +++ b/llvm/tools/llvm-exegesis/lib/InMemoryAssembler.cpp @@ -117,7 +117,7 @@ static void fillMachineFunction(llvm::MachineFunction &MF, llvm::MachineBasicBlock *MBB = MF.CreateMachineBasicBlock(); MF.push_back(MBB); const llvm::MCInstrInfo *MCII = MF.getTarget().getMCInstrInfo(); - const llvm::DebugLoc DL; + llvm::DebugLoc DL; for (const llvm::MCInst &Inst : Instructions) { const unsigned Opcode = Inst.getOpcode(); const llvm::MCInstrDesc &MCID = MCII->get(Opcode); -- cgit v1.2.3