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 | 3f8e5dd8987d1592ec0919e2eddfb5b2bc6b121e (patch) | |
tree | 7c40e8043f153b060de40df22aae5b198fbdfed1 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 68017800cdb6d3485b15c9ae2a7d9945131368a2 (diff) | |
download | bcm5719-llvm-3f8e5dd8987d1592ec0919e2eddfb5b2bc6b121e.tar.gz bcm5719-llvm-3f8e5dd8987d1592ec0919e2eddfb5b2bc6b121e.zip |
strength reduce this call away.
llvm-svn: 92253
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index abb78f0dcfa..d497471e459 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/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(); } } |