mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Preserve line number information while converting Invoke into a Call.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132505 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
76dd0de6d5
commit
d633089783
@ -96,6 +96,7 @@ static void ChangeToCall(InvokeInst *II) {
|
|||||||
NewCall->takeName(II);
|
NewCall->takeName(II);
|
||||||
NewCall->setCallingConv(II->getCallingConv());
|
NewCall->setCallingConv(II->getCallingConv());
|
||||||
NewCall->setAttributes(II->getAttributes());
|
NewCall->setAttributes(II->getAttributes());
|
||||||
|
NewCall->setDebugLoc(II->getDebugLoc());
|
||||||
II->replaceAllUsesWith(NewCall);
|
II->replaceAllUsesWith(NewCall);
|
||||||
|
|
||||||
// Follow the call by a branch to the normal destination.
|
// Follow the call by a branch to the normal destination.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user