summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2011-10-12 18:39:35 +0000
committerEric Christopher <echristo@apple.com>2011-10-12 18:39:35 +0000
commit28e06354b5d4dd539be6781e388ff27c0dffd807 (patch)
tree6e224a320ad39dcab3b12a05e16bd4a6c97d162e /lib/CodeGen/CGExpr.cpp
parentd596c4d3f8931f4d479e965bf46d0e7edad85570 (diff)
downloadclang-28e06354b5d4dd539be6781e388ff27c0dffd807.tar.gz
clang-28e06354b5d4dd539be6781e388ff27c0dffd807.tar.bz2
clang-28e06354b5d4dd539be6781e388ff27c0dffd807.tar.xz
Revert file/scope handling patches. gdb testing revealed a couple of bugs.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141796 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index ad27506d56..329dc5aa97 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -2180,8 +2180,10 @@ LValue CodeGenFunction::EmitMaterializeTemporaryExpr(
RValue CodeGenFunction::EmitCallExpr(const CallExpr *E,
ReturnValueSlot ReturnValue) {
- if (CGDebugInfo *DI = getDebugInfo())
- DI->EmitLocation(Builder, E->getLocStart());
+ if (CGDebugInfo *DI = getDebugInfo()) {
+ DI->setLocation(E->getLocStart());
+ DI->EmitLocation(Builder);
+ }
// Builtins never have block type.
if (E->getCallee()->getType()->isBlockPointerType())