On Tue, Feb 17, 2009 at 10:43 AM, Daniel Dunbar <[email protected]> wrote: > Author: ddunbar > Date: Tue Feb 17 12:43:32 2009 > New Revision: 64780 > > URL: http://llvm.org/viewvc/llvm-project?rev=64780&view=rev > Log: > Change EmitConstantExpr to allow failure. > > IRgen no longer relies on isConstantInitializer, instead we just try > to emit the constant. If that fails then in C we emit an error > unsupported (this occurs when Sema accepted something that it doesn't > know how to fold, and IRgen doesn't know how to emit) and in C++ we > emit a guarded initializer.
Any such cases are bugs in isConstantInitializer/Evaluate, IMO. As I said in PR3398, the only interesting case I know of here is pointers cast to integers, which Evaluate doesn't handle. -Eli _______________________________________________ cfe-commits mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
