[llvm] r366789 - [Attributor][NFC] Re-run clang-format on the Attributor.cpp
Hideto Ueno via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 23 01:29:22 PDT 2019
Author: uenoku
Date: Tue Jul 23 01:29:22 2019
New Revision: 366789
URL: http://llvm.org/viewvc/llvm-project?rev=366789&view=rev
Log:
[Attributor][NFC] Re-run clang-format on the Attributor.cpp
Modified:
llvm/trunk/lib/Transforms/IPO/Attributor.cpp
Modified: llvm/trunk/lib/Transforms/IPO/Attributor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/Attributor.cpp?rev=366789&r1=366788&r2=366789&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/Attributor.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/Attributor.cpp Tue Jul 23 01:29:22 2019
@@ -1282,9 +1282,7 @@ struct AAWillReturnFunction final : AAWi
: AAWillReturnImpl(F, InfoCache) {}
/// See AbstractAttribute::getManifestPosition().
- ManifestPosition getManifestPosition() const override {
- return MP_FUNCTION;
- }
+ ManifestPosition getManifestPosition() const override { return MP_FUNCTION; }
/// See AbstractAttribute::initialize(...).
void initialize(Attributor &A) override;
@@ -1432,8 +1430,8 @@ ChangeStatus AANoAliasReturned::updateIm
auto *NoAliasAA = A.getAAFor<AANoAlias>(*this, RV);
- if (!ICS.returnDoesNotAlias() && (!NoAliasAA ||
- !NoAliasAA->isAssumedNoAlias()))
+ if (!ICS.returnDoesNotAlias() &&
+ (!NoAliasAA || !NoAliasAA->isAssumedNoAlias()))
return false;
/// FIXME: We can improve capture check in two ways:
@@ -1443,7 +1441,6 @@ ChangeStatus AANoAliasReturned::updateIm
/* StoreCaptures */ true))
return false;
-
return true;
};
@@ -1563,7 +1560,7 @@ bool AAIsDeadFunction::explorePath(Attri
}
if (ICS.hasFnAttr(Attribute::NoReturn)) {
- if(!NoReturnCalls.insert(I))
+ if (!NoReturnCalls.insert(I))
return false;
return true;
More information about the llvm-commits
mailing list