mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-28 19:31:58 +00:00
Transfer debug loc to lowered call.
Patch by Alexander Herz! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116733 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4021fccf9f
commit
3bcb3a6b8d
@ -187,6 +187,7 @@ bool LowerInvoke::insertCheapEHSupport(Function &F) {
|
||||
NewCall->takeName(II);
|
||||
NewCall->setCallingConv(II->getCallingConv());
|
||||
NewCall->setAttributes(II->getAttributes());
|
||||
NewCall->setDebugLoc(II->getDebugLoc());
|
||||
II->replaceAllUsesWith(NewCall);
|
||||
|
||||
// Insert an unconditional branch to the normal destination.
|
||||
@ -267,6 +268,7 @@ void LowerInvoke::rewriteExpensiveInvoke(InvokeInst *II, unsigned InvokeNo,
|
||||
NewCall->takeName(II);
|
||||
NewCall->setCallingConv(II->getCallingConv());
|
||||
NewCall->setAttributes(II->getAttributes());
|
||||
NewCall->setDebugLoc(II->getDebugLoc());
|
||||
II->replaceAllUsesWith(NewCall);
|
||||
|
||||
// Replace the invoke with an uncond branch.
|
||||
|
Loading…
Reference in New Issue
Block a user