aboutsummaryrefslogtreecommitdiff
path: root/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
commit00df5eaa9f4f7cc0809fd47c95311b532fbe63c6 (patch)
tree3ce8a9297a558a5beff173208e25661fa3abe03e /lib/CodeGen/CGExpr.cpp
parent61d16c1f491f5ad6d4a254dcca8868acb5f150cc (diff)
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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index 830b1218c1..5e6342ae38 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/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())