Skip to content

Commit dcf4911

Browse files
tobias-stadlerfhahn
andcommitted
Update llvm/lib/IR/IRBuilder.cpp
Co-authored-by: Florian Hahn <[email protected]>
1 parent b913686 commit dcf4911

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/IR/IRBuilder.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ Value *IRBuilderBase::CreateAggregateCast(Value *V, Type *DestTy) {
8989
"Expected StructTypes with equal number of elements");
9090
NumElements = SrcTy->getStructNumElements();
9191
} else {
92-
assert(SrcTy->isArrayTy());
93-
assert(DestTy->isArrayTy() && "Expected ArrayType");
92+
assert(SrcTy->isArrayTy() && DestTy->isArrayTy() && "Expected ArrayType");
9493
assert(SrcTy->getArrayNumElements() == DestTy->getArrayNumElements() &&
9594
"Expected ArrayTypes with equal number of elements");
9695
NumElements = SrcTy->getArrayNumElements();

0 commit comments

Comments
 (0)