diff options
author | Eric Christopher <echristo@apple.com> | 2011-10-12 01:11:30 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2011-10-12 01:11:30 +0000 |
commit | c6bfbca5733f1fc090b2149c4fff0548f1f15526 (patch) | |
tree | 50c60601d31e68464e030f37d70c95fdd705aa2f /lib/CodeGen/CGDebugInfo.cpp | |
parent | d5e1d606f8c22ebda17c6fbf952f8c1696428758 (diff) |
Remember to set the location in EmitGlobalVariable to the current decl
if we're going to delete the setLocation as we did in 141732.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@141762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r-- | lib/CodeGen/CGDebugInfo.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp index d074838a36..120486dbe2 100644 --- a/lib/CodeGen/CGDebugInfo.cpp +++ b/lib/CodeGen/CGDebugInfo.cpp @@ -2303,6 +2303,8 @@ void CGDebugInfo::EmitGlobalVariable(llvm::GlobalVariable *Var, llvm::DIFile Unit = getOrCreateFile(D->getLocation()); unsigned LineNo = getLineNumber(D->getLocation()); + setLocation(D->getLocation()); + QualType T = D->getType(); if (T->isIncompleteArrayType()) { |