[PATCH] D84532: [Attributor] Fix qualifier warning of the unittest
Luofan Chen via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 24 07:15:04 PDT 2020
bbn created this revision.
bbn added a reviewer: jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a reviewer: uenoku.
Herald added subscribers: llvm-commits, okura, kuter, uenoku.
Herald added a reviewer: homerdin.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
This patch fixes the warning of casting away qualifiers.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D84532
Files:
llvm/unittests/Transforms/IPO/AttributorTest.cpp
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<AAIsDead>(IRPosition::function(*F)));
EXPECT_TRUE(AA);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84532.280454.patch
Type: text/x-patch
Size: 491 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200724/78035d98/attachment.bin>
More information about the llvm-commits
mailing list