aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-30 20:01:41 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-03-30 20:01:41 +0000
commit2809cc74931e03f52fe2739b246677b71742b67f (patch)
treee3e625eb2ede7df252d5edec6edc10aab518bee4 /clang/lib/CodeGen/CodeGenModule.cpp
parentd7eef87e6580219b241d6b434b4dced8cd1ebdc8 (diff)
downloadllvm-2809cc74931e03f52fe2739b246677b71742b67f.zip
llvm-2809cc74931e03f52fe2739b246677b71742b67f.tar.gz
llvm-2809cc74931e03f52fe2739b246677b71742b67f.tar.bz2
DebugInfo: Use new LLVM API for DebugLoc
Use the new API for `DebugLoc` added in r233573 before the old one disappears. llvm-svn: 233589
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index ae511ae..9abc885 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2350,7 +2350,7 @@ static void replaceUsesOfNonProtoConstant(llvm::Constant *old,
callSite->replaceAllUsesWith(newCall.getInstruction());
// Copy debug location attached to CI.
- if (!callSite->getDebugLoc().isUnknown())
+ if (callSite->getDebugLoc())
newCall->setDebugLoc(callSite->getDebugLoc());
callSite->eraseFromParent();
}