]> granicus.if.org Git - clang/commitdiff
add a note Neil pointed out
authorChris Lattner <sabre@nondot.org>
Wed, 18 Jul 2007 05:21:20 +0000 (05:21 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 18 Jul 2007 05:21:20 +0000 (05:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39994 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Expr.cpp

index 7b8e1fdf5ea6db4613833452a27759a0808eef79..17f474c19486cea7466e5e267318b8019fc13efa 100644 (file)
@@ -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()) {