]> granicus.if.org Git - clang/commit
Change the AST generated for offsetof a bit so that it looks like a
authorEli Friedman <eli.friedman@gmail.com>
Fri, 27 Feb 2009 06:44:11 +0000 (06:44 +0000)
committerEli Friedman <eli.friedman@gmail.com>
Fri, 27 Feb 2009 06:44:11 +0000 (06:44 +0000)
commit35183aca180a2b9b2c637cd625a40a7e147d6a32
tree64fb42bccd90eeec474659c00ef7ef9da8791e4a
parent5de4092946373af0c8caca64a281e8080c9d8a34
Change the AST generated for offsetof a bit so that it looks like a
normal expression, and change Evaluate and IRGen to evaluate it like a
normal expression.  This simplifies the code significantly, and fixes
PR3396.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65622 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Expr.h
lib/AST/Expr.cpp
lib/AST/ExprConstant.cpp
lib/AST/StmtPrinter.cpp
lib/CodeGen/CGExprScalar.cpp
lib/Sema/SemaExpr.cpp
test/Sema/offsetof.c