Skip to content

Commit 1029fd0

Browse files
authored
[NFC][ValueTracking] Simplify check in llvm::isBitwiseValue() (#65817)
Change `!isNonZero()` to `isZero()` for a minor readability improvement.
1 parent 9dc5d8d commit 1029fd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Analysis/ValueTracking.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -5315,7 +5315,7 @@ Value *llvm::isBytewiseValue(Value *V, const DataLayout &DL) {
53155315
return UndefInt8;
53165316

53175317
// Return Undef for zero-sized type.
5318-
if (!DL.getTypeStoreSize(V->getType()).isNonZero())
5318+
if (DL.getTypeStoreSize(V->getType()).isZero())
53195319
return UndefInt8;
53205320

53215321
Constant *C = dyn_cast<Constant>(V);

0 commit comments

Comments
 (0)