[NFC][InstCombine] `visitCallInst()`: make comment more understandable

This commit is contained in:
Roman Lebedev 2022-02-05 01:03:39 +03:00
parent f5353c10af
commit cd9e6a9c10
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
1 changed files with 2 additions and 2 deletions

View File

@ -949,8 +949,8 @@ Instruction *InstCombinerImpl::visitCallInst(CallInst &CI) {
if (isFreeCall(&CI, &TLI))
return visitFree(CI);
// If the caller function is nounwind, mark the call as nounwind, even if the
// callee isn't.
// If the caller function (i.e. us, the function that contains this CallInst)
// is nounwind, mark the call as nounwind, even if the callee isn't.
if (CI.getFunction()->doesNotThrow() && !CI.doesNotThrow()) {
CI.setDoesNotThrow();
return &CI;