mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 21:18:19 +00:00
Skip debug info when looking for existing EH calls at the
beginning of a block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100230 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -661,7 +661,7 @@ bool DwarfEHPrepare::PromoteStackTemporaries() {
|
||||
/// the start of the basic block (unless there already is one, in which case
|
||||
/// the existing call is returned).
|
||||
Instruction *DwarfEHPrepare::CreateExceptionValueCall(BasicBlock *BB) {
|
||||
Instruction *Start = BB->getFirstNonPHI();
|
||||
Instruction *Start = BB->getFirstNonPHIOrDbg();
|
||||
// Is this a call to eh.exception?
|
||||
if (IntrinsicInst *CI = dyn_cast<IntrinsicInst>(Start))
|
||||
if (CI->getIntrinsicID() == Intrinsic::eh_exception)
|
||||
@@ -681,7 +681,7 @@ Instruction *DwarfEHPrepare::CreateExceptionValueCall(BasicBlock *BB) {
|
||||
/// (creating it if necessary) at the start of the basic block (unless
|
||||
/// there already is a load, in which case the existing load is returned).
|
||||
Instruction *DwarfEHPrepare::CreateValueLoad(BasicBlock *BB) {
|
||||
Instruction *Start = BB->getFirstNonPHI();
|
||||
Instruction *Start = BB->getFirstNonPHIOrDbg();
|
||||
// Is this a load of the exception temporary?
|
||||
if (ExceptionValueVar)
|
||||
if (LoadInst* LI = dyn_cast<LoadInst>(Start))
|
||||
|
||||
Reference in New Issue
Block a user