Index: llvm/unittests/Transforms/IPO/AttributorTest.cpp =================================================================== --- llvm/unittests/Transforms/IPO/AttributorTest.cpp +++ llvm/unittests/Transforms/IPO/AttributorTest.cpp @@ -44,7 +44,7 @@ Function *F = M.getFunction("foo"); - AbstractAttribute *AA = (AbstractAttribute *)&( + const AbstractAttribute *AA = (const AbstractAttribute *)&( A.getOrCreateAAFor(IRPosition::function(*F))); EXPECT_TRUE(AA);