forked from OSchip/llvm-project
[SCCP] Only track returns of functions with non-void ret ty (NFC).
There is no need to add functions with void return types to the set of tracked return values. This does not change functionality, because we such functions do not have return values and we never update or access them.
This commit is contained in:
parent
60433c63ac
commit
569868f6b7
|
@ -233,7 +233,7 @@ public:
|
|||
for (unsigned i = 0, e = STy->getNumElements(); i != e; ++i)
|
||||
TrackedMultipleRetVals.insert(
|
||||
std::make_pair(std::make_pair(F, i), ValueLatticeElement()));
|
||||
} else
|
||||
} else if (!F->getReturnType()->isVoidTy())
|
||||
TrackedRetVals.insert(std::make_pair(F, ValueLatticeElement()));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue