[llvm-commits] [llvm-gcc-4.2] r46097 - /llvm-gcc-4.2/trunk/gcc/ada/decl.c
Duncan Sands
baldrick at free.fr
Wed Jan 16 14:50:05 PST 2008
Author: baldrick
Date: Wed Jan 16 16:50:04 2008
New Revision: 46097
URL: http://llvm.org/viewvc/llvm-project?rev=46097&view=rev
Log:
Restore a placeholder substitution that was
accidentally dropped in revision 45523. The
testcase is FrontendAda/placeholder.adb.
Modified:
llvm-gcc-4.2/trunk/gcc/ada/decl.c
Modified: llvm-gcc-4.2/trunk/gcc/ada/decl.c
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/ada/decl.c?rev=46097&r1=46096&r2=46097&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/ada/decl.c (original)
+++ llvm-gcc-4.2/trunk/gcc/ada/decl.c Wed Jan 16 16:50:04 2008
@@ -579,8 +579,11 @@
if (gnu_expr && kind == E_Constant)
/* LLVM local begin */
{
- gnu_type = TREE_TYPE (gnu_expr);
- gnu_size = TYPE_SIZE (gnu_type);
+ gnu_type
+ = TREE_TYPE (gnu_expr);
+ gnu_size
+ = SUBSTITUTE_PLACEHOLDER_IN_EXPR
+ (TYPE_SIZE (gnu_type), gnu_expr);
}
/* LLVM local end */
More information about the llvm-commits
mailing list