Skip to content

Commit 0d35e17

Browse files
committed
[NFC] [HWASan] remove unnecessary bool return in instrumentLandingPads
1 parent cd1acf2 commit 0d35e17

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
@@ -366,7 +366,7 @@ class HWAddressSanitizer {
366366
void instrumentStack(memtag::StackInfo &Info, Value *StackTag, Value *UARTag,
367367
const DominatorTree &DT, const PostDominatorTree &PDT,
368368
const LoopInfo &LI);
369-
bool instrumentLandingPads(SmallVectorImpl<Instruction *> &RetVec);
369+
void instrumentLandingPads(SmallVectorImpl<Instruction *> &RetVec);
370370
Value *getNextTagWithCall(IRBuilder<> &IRB);
371371
Value *getStackBaseTag(IRBuilder<> &IRB);
372372
Value *getAllocaTag(IRBuilder<> &IRB, Value *StackTag, unsigned AllocaNo);
@@ -1418,7 +1418,7 @@ void HWAddressSanitizer::emitPrologue(IRBuilder<> &IRB, bool WithFrameRecord) {
14181418
}
14191419
}
14201420

1421-
bool HWAddressSanitizer::instrumentLandingPads(
1421+
void HWAddressSanitizer::instrumentLandingPads(
14221422
SmallVectorImpl<Instruction *> &LandingPadVec) {
14231423
for (auto *LP : LandingPadVec) {
14241424
IRBuilder<> IRB(LP->getNextNode());
@@ -1427,7 +1427,6 @@ bool HWAddressSanitizer::instrumentLandingPads(
14271427
{memtag::readRegister(
14281428
IRB, (TargetTriple.getArch() == Triple::x86_64) ? "rsp" : "sp")});
14291429
}
1430-
return true;
14311430
}
14321431

14331432
void HWAddressSanitizer::instrumentStack(memtag::StackInfo &SInfo,

0 commit comments

Comments
 (0)