After processing named unions do not fall through to handle anonymous unions.
This is tested by funcargs.exp in gdb testsuite.
llvm-svn: 117659
diff --git a/clang/lib/CodeGen/CGDebugInfo.cpp b/clang/lib/CodeGen/CGDebugInfo.cpp
index 46d1447..b1328ff 100644
--- a/clang/lib/CodeGen/CGDebugInfo.cpp
+++ b/clang/lib/CodeGen/CGDebugInfo.cpp
@@ -1839,6 +1839,7 @@
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