aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Support/VirtualFileSystemTest.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-01-18 11:38:17 -0800
committerCraig Topper <craig.topper@sifive.com>2023-01-18 11:38:17 -0800
commit82fa51f74dc71a541c5176ecf7f252713319c809 (patch)
tree24c9f1fc6d883fe899158a0d0301ae4ae1716f67 /llvm/unittests/Support/VirtualFileSystemTest.cpp
parent9778802cb0f62d9e8588117b0a444d3d5c874250 (diff)
downloadllvm-82fa51f74dc71a541c5176ecf7f252713319c809.zip
llvm-82fa51f74dc71a541c5176ecf7f252713319c809.tar.gz
llvm-82fa51f74dc71a541c5176ecf7f252713319c809.tar.bz2
[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
Diffstat (limited to 'llvm/unittests/Support/VirtualFileSystemTest.cpp')
0 files changed, 0 insertions, 0 deletions