Skip to content

Commit 3918dd6

Browse files
committed
[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
1 parent 9385ece commit 3918dd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64StackTagging.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ bool AArch64StackTagging::runOnFunction(Function &Fn) {
605605
}
606606

607607
if (NumInterestingAllocas == 0)
608-
return true;
608+
return false;
609609

610610
std::unique_ptr<DominatorTree> DeleteDT;
611611
DominatorTree *DT = nullptr;

0 commit comments

Comments
 (0)