File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -679,12 +679,12 @@ void RISCVAsmPrinter::EmitHwasanMemaccessSymbols(Module &M) {
679679 OutStreamer->emitInstruction (
680680 MCInstBuilder (RISCV::LBU).addReg (RISCV::X6).addReg (RISCV::X6).addImm (0 ),
681681 MCSTI);
682- // Extract tag from X5 and compare it with loaded tag from shadow
682+ // Extract tag from pointer and compare it with loaded tag from shadow
683683 OutStreamer->emitInstruction (
684684 MCInstBuilder (RISCV::SRLI).addReg (RISCV::X7).addReg (Reg).addImm (56 ),
685685 MCSTI);
686686 MCSymbol *HandleMismatchOrPartialSym = OutContext.createTempSymbol ();
687- // X7 contains tag from memory , while X6 contains tag from the pointer
687+ // X7 contains tag from the pointer , while X6 contains tag from memory
688688 OutStreamer->emitInstruction (
689689 MCInstBuilder (RISCV::BNE)
690690 .addReg (RISCV::X7)
You can’t perform that action at this time.
0 commit comments