forked from OSchip/llvm-project
[Attributor] Mark dependence as optional
This commit is contained in:
parent
6d2a66b10d
commit
675334daef
|
@ -3018,7 +3018,8 @@ identifyAliveSuccessors(Attributor &A, const InvokeInst &II,
|
|||
AliveSuccessors.push_back(&II.getUnwindDest()->front());
|
||||
} else {
|
||||
const IRPosition &IPos = IRPosition::callsite_function(II);
|
||||
const auto &AANoUnw = A.getAAFor<AANoUnwind>(AA, IPos);
|
||||
const auto &AANoUnw = A.getAAFor<AANoUnwind>(
|
||||
AA, IPos, /* TrackDependence */ true, DepClassTy::OPTIONAL);
|
||||
if (AANoUnw.isAssumedNoUnwind()) {
|
||||
UsedAssumedInformation |= !AANoUnw.isKnownNoUnwind();
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue