1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

[FunctionAttrs] Remove redundant check. NFC

This commit is contained in:
Fangrui Song 2020-09-19 20:46:13 -07:00
parent 64799c106c
commit 2485eebd4f

View File

@ -1346,8 +1346,6 @@ static bool inferAttrsFromFunctionBodies(const SCCNodeSet &SCCNodes) {
}
static bool setDoesNotRecurse(Function &F) {
if (F.doesNotRecurse())
return false;
F.setDoesNotRecurse();
++NumNoRecurse;
return true;