From b69086e6c76c87b13dbd120ea04a4f5f6a7d6d67 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 29 Aug 2022 00:32:37 +0200 Subject: [PATCH] [RISC-V][HWASAN] Fold variable into assert --- llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp b/llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp index 60b908b..b60e3d8 100644 --- a/llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp +++ b/llvm/lib/Target/RISCV/RISCVAsmPrinter.cpp @@ -255,8 +255,7 @@ void RISCVAsmPrinter::EmitHwasanMemaccessSymbols(Module &M) { if (HwasanMemaccessSymbols.empty()) return; - const Triple &TT = TM.getTargetTriple(); - assert(TT.isOSBinFormatELF()); + assert(TM.getTargetTriple().isOSBinFormatELF()); MCSymbol *HwasanTagMismatchV2Sym = OutContext.getOrCreateSymbol("__hwasan_tag_mismatch_v2"); -- 2.7.4