aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGDebugInfo.cpp
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-10-29 16:21:19 +0000
committerDevang Patel <dpatel@apple.com>2010-10-29 16:21:19 +0000
commitf4dd962e6828f790cefc09a5b15bdbd282ebc1ee (patch)
treed1967c7bb16bbab000aee238403a8f90279c3d73 /lib/CodeGen/CGDebugInfo.cpp
parent78f5911a4ef8742c51a7f7643957e1aaa0098324 (diff)
After processing named unions do not fall through to handle anonymous unions.
This is tested by funcargs.exp in gdb testsuite. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@117659 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGDebugInfo.cpp')
-rw-r--r--lib/CodeGen/CGDebugInfo.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/CodeGen/CGDebugInfo.cpp b/lib/CodeGen/CGDebugInfo.cpp
index 46d1447c62..b1328ffc79 100644
--- a/lib/CodeGen/CGDebugInfo.cpp
+++ b/lib/CodeGen/CGDebugInfo.cpp
@@ -1839,6 +1839,7 @@ void CGDebugInfo::EmitDeclare(const VarDecl *VD, unsigned Tag,
DebugFactory.InsertDeclare(Storage, D, Builder.GetInsertBlock());
Call->setDebugLoc(llvm::DebugLoc::get(Line, Column, Scope));
+ return;
}
// If VD is an anonymous union then Storage represents value for