summaryrefslogtreecommitdiffstats
path: root/clang
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
commit31d1e2153f6625f504d5d551f17c3e076ff269eb (patch)
treee3f463cf52c5a776581d166334345ea7ab4e4585 /clang
parent094da1dc4423624e2a20a971d5665bee16327651 (diff)
downloadbcm5719-llvm-31d1e2153f6625f504d5d551f17c3e076ff269eb.tar.gz
bcm5719-llvm-31d1e2153f6625f504d5d551f17c3e076ff269eb.zip
After processing named unions do not fall through to handle anonymous unions.
This is tested by funcargs.exp in gdb testsuite. llvm-svn: 117659
Diffstat (limited to 'clang')
-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 46d1447c62c..b1328ffc796 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud