diff --git a/lib/Target/ARM/ARMExport.cpp b/lib/Target/ARM/ARMExport.cpp index 15063d59cecf21a78b002d081a568df13da94453..14fa1ec88c19ad0a0f6e04df665c438b73268166 100644 --- a/lib/Target/ARM/ARMExport.cpp +++ b/lib/Target/ARM/ARMExport.cpp @@ -161,7 +161,9 @@ namespace llvm { exportInstruction(MF, I, &(*Ins), IsBundled); DebugLoc dl = Ins->getDebugLoc(); - B->setSrcLocOnce(dl, dl.getScope()); + if (dl) { + B->setSrcLocOnce(dl, dl.getScope()); + } IsBundled = true; }