[llvm-commits] [llvm-gcc-4.2] r82486 - /llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Bob Wilson
bob.wilson at apple.com
Mon Sep 21 15:08:08 PDT 2009
Author: bwilson
Date: Mon Sep 21 17:08:07 2009
New Revision: 82486
URL: http://llvm.org/viewvc/llvm-project?rev=82486&view=rev
Log:
Fix an apparent copy/paste mistake: the addTypeName call at the beginning
of ConvertUNION for forward declarations uses "union" but this call for
completed union types uses "struct".
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-types.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-types.cpp?rev=82486&r1=82485&r2=82486&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-types.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-types.cpp Mon Sep 21 17:08:07 2009
@@ -2392,7 +2392,7 @@
const_cast<OpaqueType*>(OldTy)->refineAbstractTypeTo(ResultTy);
// Finally, set the name for the type.
- TheModule->addTypeName(GetTypeName("struct.", orig_type),
+ TheModule->addTypeName(GetTypeName("union.", orig_type),
GET_TYPE_LLVM(type));
// We have finished converting this union. See if the is the outer-most
More information about the llvm-commits
mailing list