summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-01 06:31:43 +0000
committerChris Lattner <sabre@nondot.org>2010-04-01 06:31:43 +0000
commite675d0f9242c4e34f80d7d5a51ef5c5ca30f2c60 (patch)
tree63f1ee0e3c18d3333039d8c493257f65578068df /clang/lib/CodeGen/CodeGenModule.cpp
parenta22de1fa9f361fa8eddf64dbbf9fb7a4a92130e8 (diff)
downloadbcm5719-llvm-e675d0f9242c4e34f80d7d5a51ef5c5ca30f2c60.tar.gz
bcm5719-llvm-e675d0f9242c4e34f80d7d5a51ef5c5ca30f2c60.zip
adjust to IRBuilder change and use faster DebugLoc apis.
llvm-svn: 100093
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 65aceb741ac..3c872c8560d 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -1245,9 +1245,9 @@ static void ReplaceUsesOfNonProtoTypeWithRealFunction(llvm::GlobalValue *Old,
if (!CI->use_empty())
CI->replaceAllUsesWith(NewCall);
- // Copy any custom metadata attached with CI.
- if (llvm::MDNode *DbgNode = CI->getDbgMetadata())
- NewCall->setDbgMetadata(DbgNode);
+ // Copy debug location attached to CI.
+ if (!CI->getDebugLoc().isUnknown())
+ NewCall->setDebugLoc(CI->getDebugLoc());
CI->eraseFromParent();
}
}
OpenPOWER on IntegriCloud