forked from OSchip/llvm-project
postpone sizeof objc-class computatin to the clients.
llvm-svn: 62292
This commit is contained in:
parent
ceac7c34f1
commit
dae9276090
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue