[llvm-commits] llvm-gcc: only call rest_of_decl_compilation on VAR_DECLs in EmitBIND_EXPR
Duncan Sands
baldrick at free.fr
Wed Feb 28 03:09:58 PST 2007
The variable expansion part of EmitBIND_EXPR is clearly based on
expand_var in expr.c, however unlike expand_var it doesn't check
for VAR_DECL before calling rest_of_decl_compilation. This patch
adds the check. Without it, the Ada run-time fails to build due to
rest_of_decl_compilation getting called for a static CONSTANT_DECL.
Ciao,
Duncan.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expand_decl.diff
Type: text/x-diff
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20070228/8d5f9772/attachment.diff>
More information about the llvm-commits
mailing list