Skip to content

Commit 4acbe43

Browse files
committed
Made the assert less confusing
1 parent 122c675 commit 4acbe43

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,9 +119,8 @@ class OpLowerer {
119119
replaceFunctionWithOp(Function &F, dxil::OpCode DXILOp,
120120
ArrayRef<IntrinArgSelect> ArgSelects) {
121121
bool IsVectorArgExpansion = isVectorArgExpansion(F);
122-
assert(!IsVectorArgExpansion ||
123-
ArgSelects.empty() &&
124-
"Cann't do vector arg expansion when using arg selects.");
122+
assert(!(IsVectorArgExpansion && ArgSelects.size()) &&
123+
"Cann't do vector arg expansion when using arg selects.");
125124
return replaceFunction(F, [&](CallInst *CI) -> Error {
126125
OpBuilder.getIRB().SetInsertPoint(CI);
127126
SmallVector<Value *> Args;

0 commit comments

Comments
 (0)