Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
[RISCV] Use TargetMachine MCSubtargetInfo in RISCVAsmPrinter::EmitHwa…
…sanMemaccessSymbols. 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 branch information
Showing
1 changed file
with
27 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters