summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2013-03-12 20:43:25 +0000
committerAdrian Prantl <aprantl@apple.com>2013-03-12 20:43:25 +0000
commitc782242a12437c36d551c6c6b4724f7cb42d5a56 (patch)
tree149d08efeb3f231eca87a64ad2687baa1f8abe2d /clang/lib/CodeGen/CGExpr.cpp
parent061dabf7df3f22977710eee02936b8a9de179bfb (diff)
downloadbcm5719-llvm-c782242a12437c36d551c6c6b4724f7cb42d5a56.tar.gz
bcm5719-llvm-c782242a12437c36d551c6c6b4724f7cb42d5a56.zip
Force column info to be generated for call expressions so we can
differentiate multiple inlined call sites on the same line in the debug info. Fixes rdar://problem/13036237 llvm-svn: 176895
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 830b1218c19..5e6342ae380 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -2849,8 +2849,12 @@ RValue CodeGenFunction::EmitRValueForField(LValue LV,
RValue CodeGenFunction::EmitCallExpr(const CallExpr *E,
ReturnValueSlot ReturnValue) {
- if (CGDebugInfo *DI = getDebugInfo())
- DI->EmitLocation(Builder, E->getLocStart());
+ if (CGDebugInfo *DI = getDebugInfo()) {
+ SourceLocation Loc = E->getLocStart();
+ DI->EmitLocation(Builder, Loc,
+ /* Force column info to be generated so we can differentiate
+ multiple call sites on the same line in the debug info. */ true);
+ }
// Builtins never have block type.
if (E->getCallee()->getType()->isBlockPointerType())
OpenPOWER on IntegriCloud