commit | 67303c1c78345c53abbf19516170f5bd79b0534d | [log] [tgz] |
---|---|---|
author | Fariborz Jahanian <fjahanian@apple.com> | Fri Jan 16 01:42:12 2009 +0000 |
committer | Fariborz Jahanian <fjahanian@apple.com> | Fri Jan 16 01:42:12 2009 +0000 |
tree | 31ad433f718ab4122493779993e20f5a0ed27e82 | |
parent | 416fcaf92006f8a3cc290cdd2aa62bbf3998541f [diff] [blame] |
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
diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 6d98952..b5a234c 100644 --- a/lib/AST/ExprConstant.cpp +++ b/lib/AST/ExprConstant.cpp
@@ -793,6 +793,10 @@ return false; } + // sizeof (objc class) ? + if (SrcTy->isObjCInterfaceType()) + return false; + bool isSizeOf = E->isSizeOf(); // GCC extension: sizeof(function) = 1.