From 00df5eaa9f4f7cc0809fd47c95311b532fbe63c6 Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 12 Mar 2013 20:43:25 +0000 Subject: 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 --- lib/CodeGen/CGExpr.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExpr.cpp') 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()) -- cgit v1.2.3