Skip to content

Commit 84131b5

Browse files
committed
change the type of StoreSize to be TypeSize
1 parent f51c8e2 commit 84131b5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,9 +1363,8 @@ static bool isSwiftError(const Value *V) {
13631363

13641364
bool IRTranslator::translateLoad(const User &U, MachineIRBuilder &MIRBuilder) {
13651365
const LoadInst &LI = cast<LoadInst>(U);
1366-
1367-
unsigned StoreSize = DL->getTypeStoreSize(LI.getType());
1368-
if (StoreSize == 0)
1366+
TypeSize StoreSize = DL->getTypeStoreSize(LI.getType());
1367+
if (StoreSize.isZero())
13691368
return true;
13701369

13711370
ArrayRef<Register> Regs = getOrCreateVRegs(LI);

0 commit comments

Comments
 (0)