This patch introduces basic unittest interface for the Attributor and a simple test case for casting.
Details
Diff Detail
Event Timeline
This broke the build for -DBUILD_SHARED_LIBS=True. I've committed rG5282a6186c which fixes it for me.
llvm/unittests/Transforms/IPO/AttributorTest.cpp | ||
---|---|---|
49 | 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] |
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]