[llvm-commits] llvm-gcc: only call rest_of_decl_compilation on VAR_DECLs in EmitBIND_EXPR

Chris Lattner clattner at apple.com
Fri Mar 2 18:17:52 PST 2007


On Feb 28, 2007, at 3:09 AM, Duncan Sands wrote:

> 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.

Applied, please commit the testcase,

-Chris



More information about the llvm-commits mailing list