Skip to content

Commit a7044ed

Browse files
committed
[Attributor] Fix qualifier warning of the unittest
Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D84532
1 parent 92fa91b commit a7044ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/unittests/Transforms/IPO/AttributorTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ TEST_F(AttributorTestBase, TestCast) {
4444

4545
Function *F = M.getFunction("foo");
4646

47-
AbstractAttribute *AA = (AbstractAttribute *)&(
48-
A.getOrCreateAAFor<AAIsDead>(IRPosition::function(*F)));
47+
const AbstractAttribute *AA =
48+
&A.getOrCreateAAFor<AAIsDead>(IRPosition::function(*F));
4949

5050
EXPECT_TRUE(AA);
5151

0 commit comments

Comments
 (0)