summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-04-04 11:45:53 +0000
committerClement Courbet <courbet@google.com>2018-04-04 11:45:53 +0000
commit615b31d706e78d508c23345b728cc2738f20b59c (patch)
tree5df5468ba1dfb65c6ce7cf949358bc51896a8099 /llvm/tools/llvm-exegesis/lib
parent1fc0da48499fec0a18e790390879edcd41433d31 (diff)
downloadbcm5719-llvm-615b31d706e78d508c23345b728cc2738f20b59c.tar.gz
bcm5719-llvm-615b31d706e78d508c23345b728cc2738f20b59c.zip
[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
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib')
-rw-r--r--llvm/tools/llvm-exegesis/lib/InMemoryAssembler.cpp2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud