[RISCV] Use TargetMachine MCSubtargetInfo in RISCVAsmPrinter::EmitHwasanMemaccessSymbols.
The STI object in the class is updated each time runOnMachineFunction is called. That means STI will be based on the last function processed. If that function has different attributes than the rest of the module that could theoretically result in odd behavior. Use the copy in TargetMachine instead. That will use the global CPU and mattrs. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D142041
Loading
Please sign in to comment