Skip to content

Commit 4574979

Browse files
author
git apple-llvm automerger
committed
Merge commit '485717fd64b8' from apple/master into swift/master-next
2 parents 6864fd6 + 485717f commit 4574979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SystemZ/SystemZISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ supportedAddressingMode(Instruction *I, bool HasVector) {
847847
}
848848

849849
if (isa<LoadInst>(I) && I->hasOneUse()) {
850-
auto *SingleUser = dyn_cast<Instruction>(*I->user_begin());
850+
auto *SingleUser = cast<Instruction>(*I->user_begin());
851851
if (SingleUser->getParent() == I->getParent()) {
852852
if (isa<ICmpInst>(SingleUser)) {
853853
if (auto *C = dyn_cast<ConstantInt>(SingleUser->getOperand(1)))

0 commit comments

Comments
 (0)