forked from OSchip/llvm-project
Fix alignment check for ObjCObjectTypeLoc.
llvm-svn: 241554
This commit is contained in:
parent
3f661e0899
commit
e7ac0776cb
|
@ -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 *>();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue