[CFG] Handle calls with funclet bundle
authorChoongwoo Han <choongwoo.han@microsoft.com>
Fri, 3 Dec 2021 18:44:18 +0000 (10:44 -0800)
committerReid Kleckner <rnk@google.com>
Fri, 3 Dec 2021 18:51:10 +0000 (10:51 -0800)
commit181c4ba467c4affbea89b4b2ea8a712da3e54900
treef7b1020b86fe13b541475ff2147c31cd4da26e2e
parent572a0721a022e992648bf55c80b5defb53aa892f
[CFG] Handle calls with funclet bundle

When Control Flow Guard Check is inserted, funclet bundle was not checked. Therefore, it didn't generate code correctly when a target function has "funclet" bundle.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D114914
llvm/lib/Transforms/CFGuard/CFGuard.cpp
llvm/test/CodeGen/X86/cfguard-checks.ll