[cfe-commits] r53233 - /cfe/trunk/lib/AST/ExprConstant.cpp

Eli Friedman eli.friedman at gmail.com
Tue Jul 8 09:26:17 PDT 2008


On Tue, Jul 8, 2008 at 7:30 AM, Anders Carlsson <andersca at mac.com> wrote:
> +      if (!PointerExprEvaluator::Evaluate(SubExpr, LV, Ctx))
> +        return APValue();
> +      if (LV.getLValueBase())
> +        return APValue();
> +
> +      Result = llvm::APSInt(DestWidth, LV.getLValueOffset());

Oww... I think this is going to ram into issues if we try to implement
integer arithmetic on actual pointers (which we might need in some
limited capacity to match some of the stuff gcc folds).  You don't
need to fix it immediately, but it's something to keep in mind.

-Eli



More information about the cfe-commits mailing list