aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
diff options
context:
space:
mode:
authorMartin Storsjö <martin@martin.st>2025-03-26 22:13:28 +0200
committerGitHub <noreply@github.com>2025-03-26 22:13:28 +0200
commit51bceb46f8eeb7c3d060387be315ca41855933c2 (patch)
tree86bfa393589f48d7564f7266d0a2d807b5b27766 /llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp
parent9224165871c5555acc568b3895c736ff2a580e1e (diff)
downloadllvm-51bceb46f8eeb7c3d060387be315ca41855933c2.zip
llvm-51bceb46f8eeb7c3d060387be315ca41855933c2.tar.gz
llvm-51bceb46f8eeb7c3d060387be315ca41855933c2.tar.bz2
[libcxx] [test] Fix restoring LLVM_DIR and Clang_DIR (#132838)
In 664f345cd53d1f624d94f9889a1c9fff803e3391, a fix was introduced, attempting to restore LLVM_DIR and Clang_DIR after doing find_package(Clang). However, 6775285e7695f2d45cf455f5d31b2c9fa9362d3d added a return if the clangTidy target wasn't found. If this is hit, we don't restore LLVM_DIR and Clang_DIR, which causes strange effects if CMake is rerun a second time. Move the code for restoring LLVM_DIR and Clang_DIR to directly after the find_package calls, to make sure they are restored, regardless of the find_package outcome.
Diffstat (limited to 'llvm/lib/Target/RISCV/Disassembler/RISCVDisassembler.cpp')
0 files changed, 0 insertions, 0 deletions