summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-01-16 01:42:12 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-01-16 01:42:12 +0000
commitdae927609046e7b2c8f81e8c5e641f7dabeb3af4 (patch)
tree8c04c7d22da728220bffe1d2392af95ec13c669d /clang/lib/AST/ExprConstant.cpp
parentceac7c34f1af9a704aebe1ed5de7ed9c99a9dc64 (diff)
downloadbcm5719-llvm-dae927609046e7b2c8f81e8c5e641f7dabeb3af4.tar.gz
bcm5719-llvm-dae927609046e7b2c8f81e8c5e641f7dabeb3af4.zip
postpone sizeof objc-class computatin to the clients.
llvm-svn: 62292
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
-rw-r--r--clang/lib/AST/ExprConstant.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 6d98952545c..b5a234c5080 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud