1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

Fix MSVC "'type cast': conversion from 'unsigned int' to 'const llvm::CallBase *' of greater size" warning. NFCI.

This commit is contained in:
Simon Pilgrim 2021-03-11 10:40:11 +00:00
parent f41f493697
commit 2a408aa2f4

View File

@ -32,7 +32,8 @@ TEST_F(AttributorTestBase, IRPPositionCallBaseContext) {
parseModule(ModuleString);
Function *F = M->getFunction("foo");
IRPosition Pos = IRPosition::function(*F, (const llvm::CallBase *)0xDEADBEEF);
IRPosition Pos =
IRPosition::function(*F, (const llvm::CallBase *)(uintptr_t)0xDEADBEEF);
EXPECT_TRUE(Pos.hasCallBaseContext());
EXPECT_FALSE(Pos.stripCallBaseContext().hasCallBaseContext());
}
@ -72,4 +73,4 @@ TEST_F(AttributorTestBase, TestCast) {
ASSERT_TRUE(SSucc);
}
} // namespace llvm
} // namespace llvm