diff options
author | Florian Hahn <florian.hahn@arm.com> | 2017-12-20 17:16:59 +0000 |
---|---|---|
committer | Florian Hahn <florian.hahn@arm.com> | 2017-12-20 17:16:59 +0000 |
commit | 012c8f97b24f0c016861fc6530b75bbfdead0b19 (patch) | |
tree | 4bf189a1dc3d5122b6be4d0b1b975cb9d18a4a38 /llvm/lib | |
parent | 53b5c13b9d83ab2d7459fd42f13493231f078e66 (diff) | |
download | bcm5719-llvm-012c8f97b24f0c016861fc6530b75bbfdead0b19.tar.gz bcm5719-llvm-012c8f97b24f0c016861fc6530b75bbfdead0b19.zip |
[InstCombine] Add debug location to new caller.
Reviewers: rnk, aprantl, majnemer
Reviewed By: aprantl
Differential Revision: https://reviews.llvm.org/D414
llvm-svn: 321191
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index aa055121e71..a088d447337 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -4394,6 +4394,7 @@ InstCombiner::transformCallThroughTrampoline(CallSite CS, cast<CallInst>(Caller)->getCallingConv()); cast<CallInst>(NewCaller)->setAttributes(NewPAL); } + NewCaller->setDebugLoc(Caller->getDebugLoc()); return NewCaller; } |