[mte] fix runOnFunction return value falsely suggesting function was modified.

If NumInterestingAllocas == 0 we do not add any instrumentation or
padding in the previous loop.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D118961
This commit is contained in:
Florian Mayer 2022-02-03 18:18:39 -08:00
parent 9385ece95a
commit 3918dd6b8a
1 changed files with 1 additions and 1 deletions

View File

@ -605,7 +605,7 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
}
if (NumInterestingAllocas == 0)
return true;
return false;
std::unique_ptr<DominatorTree> DeleteDT;
DominatorTree *DT = nullptr;