Skip to content

Commit 375c9e7

Browse files
fmayermahesh-attarde
authored andcommitted
[NFC] [HWASan] remove unused bool return value (llvm#150516)
1 parent 4aff56e commit 375c9e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class HWAddressSanitizer {
363363
void tagAlloca(IRBuilder<> &IRB, AllocaInst *AI, Value *Tag, size_t Size);
364364
Value *tagPointer(IRBuilder<> &IRB, Type *Ty, Value *PtrLong, Value *Tag);
365365
Value *untagPointer(IRBuilder<> &IRB, Value *PtrLong);
366-
bool instrumentStack(memtag::StackInfo &Info, Value *StackTag, Value *UARTag,
366+
void instrumentStack(memtag::StackInfo &Info, Value *StackTag, Value *UARTag,
367367
const DominatorTree &DT, const PostDominatorTree &PDT,
368368
const LoopInfo &LI);
369369
bool instrumentLandingPads(SmallVectorImpl<Instruction *> &RetVec);
@@ -1430,7 +1430,7 @@ bool HWAddressSanitizer::instrumentLandingPads(
14301430
return true;
14311431
}
14321432

1433-
bool HWAddressSanitizer::instrumentStack(memtag::StackInfo &SInfo,
1433+
void HWAddressSanitizer::instrumentStack(memtag::StackInfo &SInfo,
14341434
Value *StackTag, Value *UARTag,
14351435
const DominatorTree &DT,
14361436
const PostDominatorTree &PDT,
@@ -1524,7 +1524,6 @@ bool HWAddressSanitizer::instrumentStack(memtag::StackInfo &SInfo,
15241524
}
15251525
memtag::alignAndPadAlloca(Info, Mapping.getObjectAlignment());
15261526
}
1527-
return true;
15281527
}
15291528

15301529
static void emitRemark(const Function &F, OptimizationRemarkEmitter &ORE,

0 commit comments

Comments
 (0)