diff options
-rw-r--r-- | AST/Expr.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/AST/Expr.cpp b/AST/Expr.cpp index 7b8e1fdf5e..17f474c194 100644 --- a/AST/Expr.cpp +++ b/AST/Expr.cpp @@ -277,6 +277,10 @@ Expr::isModifiableLvalueResult Expr::isModifiableLvalue() const { /// /// FIXME: This should ext-warn on overflow during evaluation! ISO C does not /// permit this. +/// +/// FIXME: Handle offsetof. Two things to do: Handle GCC's __builtin_offsetof +/// to support gcc 4.0+ and handle the idiom GCC recognizes with a null pointer +/// cast+dereference. bool Expr::isIntegerConstantExpr(llvm::APSInt &Result, ASTContext &Ctx, SourceLocation *Loc, bool isEvaluated) const { switch (getStmtClass()) { |