forked from OSchip/llvm-project
[Attributor] Fix qualifier warning of the unittest
Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D84532
This commit is contained in:
parent
92fa91bb40
commit
a7044edde7
|
@ -44,8 +44,8 @@ TEST_F(AttributorTestBase, TestCast) {
|
|||
|
||||
Function *F = M.getFunction("foo");
|
||||
|
||||
AbstractAttribute *AA = (AbstractAttribute *)&(
|
||||
A.getOrCreateAAFor<AAIsDead>(IRPosition::function(*F)));
|
||||
const AbstractAttribute *AA =
|
||||
&A.getOrCreateAAFor<AAIsDead>(IRPosition::function(*F));
|
||||
|
||||
EXPECT_TRUE(AA);
|
||||
|
||||
|
|
Loading…
Reference in New Issue