[Attributor] Fix qualifier warning of the unittest

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D84532
This commit is contained in:
Luofan Chen 2020-07-27 22:28:39 +08:00
parent 92fa91bb40
commit a7044edde7
1 changed files with 2 additions and 2 deletions

View File

@ -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);