[x86/SLH] Fix a bug where we would harden tail calls twice -- once as
authorChandler Carruth <chandlerc@gmail.com>
Mon, 23 Jul 2018 07:56:15 +0000 (07:56 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Mon, 23 Jul 2018 07:56:15 +0000 (07:56 +0000)
commit1d926fb9f4a967c7d1ef7312e147933987c8cd7b
tree01a0beab6553a673e5087264b5310b40d0ba73be
parentb66f2d8df8c05328c4c478876b5ebb58564d7722
[x86/SLH] Fix a bug where we would harden tail calls twice -- once as
a call, and then again as a return.

Also added a comment to try and explain better why we would be doing
what we're doing when hardening the (non-call) returns.

llvm-svn: 337673
llvm/lib/Target/X86/X86SpeculativeLoadHardening.cpp
llvm/test/CodeGen/X86/speculative-load-hardening-indirect.ll