Skip to content

Commit a51196e

Browse files
committed
[llvm-reduce] Remove unreachable branch (NFC)
Remove stale branch which is unreachable with opaque pointers.
1 parent 4424903 commit a51196e

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,6 @@ static bool callLooksLikeLoadStore(CallBase *CB, Value *&DataArg,
114114
PtrArg = ConstantPointerNull::get(PtrTy);
115115
}
116116

117-
// Make sure we don't emit an invalid store with typed pointers.
118-
if (IsStore && DataArg->getType()->getPointerTo(
119-
cast<PointerType>(PtrArg->getType())->getAddressSpace()) !=
120-
PtrArg->getType())
121-
return false;
122-
123117
return true;
124118
}
125119

0 commit comments

Comments
 (0)