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:
parent
f41f493697
commit
2a408aa2f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user