Skip to content

Commit 080b0c9

Browse files
committed
[IR][unittests] Fix regressions from removal of duplicate pointer ty
1 parent 6d636d8 commit 080b0c9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/unittests/IR/InstructionsTest.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,9 +253,8 @@ TEST(InstructionsTest, CastInst) {
253253
CastInst::getCastOpcode(v2ptr32, true, V2PtrAS1Ty, true));
254254

255255
// Test mismatched number of elements for pointers
256-
EXPECT_FALSE(CastInst::isBitCastable(V2PtrTy, V2PtrTy));
257-
EXPECT_FALSE(CastInst::isBitCastable(V2PtrAS1Ty, V2PtrAS1Ty));
258256
EXPECT_FALSE(CastInst::isBitCastable(V2PtrAS1Ty, V4PtrAS1Ty));
257+
EXPECT_FALSE(CastInst::isBitCastable(V4PtrAS1Ty, V2PtrAS1Ty));
259258
EXPECT_FALSE(CastInst::isBitCastable(PtrTy, V2PtrTy));
260259
EXPECT_FALSE(CastInst::isBitCastable(V2PtrTy, PtrTy));
261260

0 commit comments

Comments
 (0)