aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/VirtualFileSystem.cpp
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-10-26 20:26:36 +0000
committerReid Kleckner <rnk@google.com>2018-10-26 20:26:36 +0000
commit98d880fbd7aa16b833466855b01cd2c2e5576443 (patch)
tree5b820badfe4b383b0da5fa053448ce777a6d094a /llvm/lib/Support/VirtualFileSystem.cpp
parente2ec68e17771ffcc2935608d30db1a6b7eb65d4b (diff)
downloadllvm-98d880fbd7aa16b833466855b01cd2c2e5576443.zip
llvm-98d880fbd7aa16b833466855b01cd2c2e5576443.tar.gz
llvm-98d880fbd7aa16b833466855b01cd2c2e5576443.tar.bz2
[Spectre] Fix MIR verifier errors in retpoline thunks
Summary: The main challenge here is that X86InstrInfo::AnalyzeBranch doesn't understand the way we're using a CALL instruction as a branch, so we can't list the CallTarget MBB as a successor of the entry block. If we don't list it as a successor, then the AsmPrinter doesn't print a label for the MBB. Fix the issue by inserting our own label at the beginning of the call target block. We can rely on the AsmPrinter to always emit it, even though the block appears to be unreachable, but address-taken. Fixes PR38391. Reviewers: thegameg, chandlerc, echristo Subscribers: hiraditya, llvm-commits Differential Revision: https://reviews.llvm.org/D53653 llvm-svn: 345426
Diffstat (limited to 'llvm/lib/Support/VirtualFileSystem.cpp')
0 files changed, 0 insertions, 0 deletions