[llvm] 6626d1b - [Attributor][NFC] Remove ugly and unneeded cast
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 28 20:55:58 PST 2020
Author: Johannes Doerfert
Date: 2020-01-28T22:54:31-06:00
New Revision: 6626d1b7c0ef5e3f7a60994bd4efa6fd0d0ed672
URL: https://github.com/llvm/llvm-project/commit/6626d1b7c0ef5e3f7a60994bd4efa6fd0d0ed672
DIFF: https://github.com/llvm/llvm-project/commit/6626d1b7c0ef5e3f7a60994bd4efa6fd0d0ed672.diff
LOG: [Attributor][NFC] Remove ugly and unneeded cast
Added:
Modified:
llvm/lib/Transforms/IPO/Attributor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/IPO/Attributor.cpp b/llvm/lib/Transforms/IPO/Attributor.cpp
index 400e7127102f..0598bca17ce7 100644
--- a/llvm/lib/Transforms/IPO/Attributor.cpp
+++ b/llvm/lib/Transforms/IPO/Attributor.cpp
@@ -4403,7 +4403,7 @@ struct AAValueSimplifyFloating : AAValueSimplifyImpl {
ChangeStatus updateImpl(Attributor &A) override {
bool HasValueBefore = SimplifiedAssociatedValue.hasValue();
- auto VisitValueCB = [&](Value &V, BooleanState, bool Stripped) -> bool {
+ auto VisitValueCB = [&](Value &V, bool, bool Stripped) -> bool {
auto &AA = A.getAAFor<AAValueSimplify>(*this, IRPosition::value(V));
if (!Stripped && this == &AA) {
// TODO: Look the instruction and check recursively.
@@ -4415,9 +4415,9 @@ struct AAValueSimplifyFloating : AAValueSimplifyImpl {
return checkAndUpdate(A, *this, V, SimplifiedAssociatedValue);
};
- if (!genericValueTraversal<AAValueSimplify, BooleanState>(
- A, getIRPosition(), *this, static_cast<BooleanState &>(*this),
- VisitValueCB))
+ bool Dummy;
+ if (!genericValueTraversal<AAValueSimplify, bool>(A, getIRPosition(), *this,
+ Dummy, VisitValueCB))
if (!askSimplifiedValueForAAValueConstantRange(A))
return indicatePessimisticFixpoint();
More information about the llvm-commits
mailing list