diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-29 07:49:13 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-29 07:49:13 +0000 |
commit | 1280708c17d373762ea4110b4f989d6c7239f6fb (patch) | |
tree | cc7511ac0f98da28198057295f4ca60dc51e8914 /lib/CodeGen/CodeGenModule.cpp | |
parent | b1756663633c4dd2e2ce60dda2e59fc17fd7d45f (diff) |
strength reduce this call away.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92253 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index abb78f0dcf..d497471e45 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/lib/CodeGen/CodeGenModule.cpp @@ -1090,7 +1090,8 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old, CI->replaceAllUsesWith(NewCall); // Copy any custom metadata attached with CI. - CI->getContext().getMetadata().copyMD(CI, NewCall); + if (llvm::MDNode *DbgNode = CI->getMetadata("dbg")) + NewCall->setMetadata("dbg", DbgNode); CI->eraseFromParent(); } } |