Fix alignment check for ObjCObjectTypeLoc.

llvm-svn: 241554
This commit is contained in:
Douglas Gregor 2015-07-07 04:23:51 +00:00
parent 3f661e0899
commit e7ac0776cb
1 changed files with 3 additions and 2 deletions

View File

@ -948,8 +948,9 @@ public:
}
unsigned getExtraLocalDataAlignment() const {
assert(llvm::alignOf<ObjCObjectTypeLoc>() > llvm::alignOf<TypeSourceInfo *>()
&& "not enough alignment for tail-allocated data");
assert(llvm::alignOf<ObjCObjectTypeLoc>()
>= llvm::alignOf<TypeSourceInfo *>() &&
"not enough alignment for tail-allocated data");
return llvm::alignOf<TypeSourceInfo *>();
}