summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorMichael Kuperstein <michael.m.kuperstein@intel.com>2015-10-08 07:48:49 +0000
committerMichael Kuperstein <michael.m.kuperstein@intel.com>2015-10-08 07:48:49 +0000
commit2b3c16ca176be0b714a577c7a53d666bc57849ab (patch)
treecb88879c6cb01f042c26791034c0964b85f40d70 /llvm/lib/CodeGen
parente4e3e6a5bf553841c9108b631a4170a3dac0d411 (diff)
downloadbcm5719-llvm-2b3c16ca176be0b714a577c7a53d666bc57849ab.tar.gz
bcm5719-llvm-2b3c16ca176be0b714a577c7a53d666bc57849ab.zip
Do not assert on first non-prologue instruction being a CFI directive.
llvm-svn: 249668
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index e218b01353a..5ceafde575d 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -1117,12 +1117,8 @@ static DebugLoc findPrologueEndLoc(const MachineFunction *MF) {
for (const auto &MBB : *MF)
for (const auto &MI : MBB)
if (!MI.isDebugValue() && !MI.getFlag(MachineInstr::FrameSetup) &&
- MI.getDebugLoc()) {
- // Did the target forget to set the FrameSetup flag for CFI insns?
- assert(!MI.isCFIInstruction() &&
- "First non-frame-setup instruction is a CFI instruction.");
+ MI.getDebugLoc())
return MI.getDebugLoc();
- }
return DebugLoc();
}
OpenPOWER on IntegriCloud