[PATCH] D83754: [Attributor] Unittest for Attributor
    Florian Hahn via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Jul 23 06:24:48 PDT 2020
    
    
  
fhahn added inline comments.
================
Comment at: llvm/unittests/Transforms/IPO/AttributorTest.cpp:48
+  AbstractAttribute *AA = (AbstractAttribute *)&(
+      A.getOrCreateAAFor<AAIsDead>(IRPosition::function(*F)));
+
----------------
This seems to cause the following warning for the builder http://lab.llvm.org:8011/builders/llvm-clang-x86_64-expensive-checks-ubuntu
/home/buildbot/as-builder-4/llvm-clang-x86_64-expensive-checks-ubuntu/llvm-project/llvm/unittests/Transforms/IPO/AttributorTest.cpp:48:61: warning: cast from type ‘const llvm::AAIsDead*’ to type ‘llvm::AbstractAttribute*’ casts away qualifiers [-Wcast-qual]
Repository:
  rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83754/new/
https://reviews.llvm.org/D83754
    
    
More information about the llvm-commits
mailing list