summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorStuart Hastings <stuart@apple.com>2010-07-19 23:56:31 +0000
committerStuart Hastings <stuart@apple.com>2010-07-19 23:56:31 +0000
commit7d7bc561bf2d1b889ee197f9b4adbf99345a776d (patch)
tree4f45181a66e42edac2e637b72ddfe77795432add /clang/lib/CodeGen/CGDebugInfo.cpp
parent61475c5c3c30662d82efe16076d31303b9d28637 (diff)
downloadbcm5719-llvm-7d7bc561bf2d1b889ee197f9b4adbf99345a776d.tar.gz
bcm5719-llvm-7d7bc561bf2d1b889ee197f9b4adbf99345a776d.zip
Correct line info for declarations/definitions. Radar 8063111.
llvm-svn: 108785
Diffstat (limited to 'clang/lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--clang/lib/CodeGen/CGDebugInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 33e299340d3..6d7137e3889 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1377,6 +1377,7 @@ void CGDebugInfo::EmitRegionStart(llvm::Function *Fn, CGBuilderTy &Builder) {
DebugFactory.CreateLexicalBlock(RegionStack.empty() ?
llvm::DIDescriptor() :
llvm::DIDescriptor(RegionStack.back()),
+ getOrCreateFile(CurLoc),
getLineNumber(CurLoc),
getColumnNumber(CurLoc));
llvm::MDNode *DN = D;
OpenPOWER on IntegriCloud