diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-16 01:42:12 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-01-16 01:42:12 +0000 |
commit | 67303c1c78345c53abbf19516170f5bd79b0534d (patch) | |
tree | 31ad433f718ab4122493779993e20f5a0ed27e82 /lib/AST/ExprConstant.cpp | |
parent | 416fcaf92006f8a3cc290cdd2aa62bbf3998541f (diff) |
postpone sizeof objc-class computatin to the clients.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62292 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ExprConstant.cpp')
-rw-r--r-- | lib/AST/ExprConstant.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 6d98952545..b5a234c508 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp @@ -793,6 +793,10 @@ bool IntExprEvaluator::VisitSizeOfAlignOfExpr(const SizeOfAlignOfExpr *E) { return false; } + // sizeof (objc class) ? + if (SrcTy->isObjCInterfaceType()) + return false; + bool isSizeOf = E->isSizeOf(); // GCC extension: sizeof(function) = 1. |