[X86] Use Min behavior for cf-protection-{return,branch}/ibt-seal module flags
authorFangrui Song <i@maskray.me>
Wed, 20 Jul 2022 04:20:01 +0000 (21:20 -0700)
committerFangrui Song <i@maskray.me>
Wed, 20 Jul 2022 04:20:02 +0000 (21:20 -0700)
commit23ba688f02ea72b0af3480cd95d31e9a79f2d92a
tree0e2eb09f336a10d821a670d49861b5aaa1bc879b
parente882ac54c4bf9257b6a06ab03263a9b15c640af1
[X86] Use Min behavior for cf-protection-{return,branch}/ibt-seal module flags

These features require that all object files are compiled with the support. When
the feature is disabled for an object file, the merge behavior should treat the
file having a value of 0 (see D129911).

Reviewed By: xiangzhangllvm

Differential Revision: https://reviews.llvm.org/D130065
clang/lib/CodeGen/CodeGenModule.cpp
clang/test/CodeGen/X86/x86-cf-protection.c