Skip to content

Commit 7c00c1c

Browse files
committed
fixup! Simplify the ternary expression
1 parent 17e9bec commit 7c00c1c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/CodeGen/InterleavedAccessPass.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -615,9 +615,7 @@ static std::pair<Value *, APInt> getMask(Value *WideMask, unsigned Factor,
615615
// In a very rare occasion, all the intrinsic arguments might be zeros,
616616
// in which case we still want to return an all-zeros constant instead of
617617
// nullptr.
618-
return {RefArg ? RefArg
619-
: Constant::getNullValue(IMI->getArgOperand(0)->getType()),
620-
GapMask};
618+
return {RefArg ? RefArg : IMI->getArgOperand(0), GapMask};
621619
}
622620
}
623621

0 commit comments

Comments
 (0)