From 64bc627b8878dd77fc3a85007e2ced0a515c77d3 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 7 Feb 2020 13:00:22 +0100 Subject: [PATCH] clang-cl: Parse new MSVC flags /Qspectre-load and /Qspectre-load-cf See https://github.com/MicrosoftDocs/cpp-docs/commit/2fdf0ba0bf8d3875c754776ca1084654135cb710 --- clang/include/clang/Driver/CLCompatOptions.td | 2 ++ clang/test/Driver/cl-options.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/clang/include/clang/Driver/CLCompatOptions.td b/clang/include/clang/Driver/CLCompatOptions.td index 90be1d3..561746d 100644 --- a/clang/include/clang/Driver/CLCompatOptions.td +++ b/clang/include/clang/Driver/CLCompatOptions.td @@ -452,6 +452,8 @@ def _SLASH_Qpar : CLFlag<"Qpar">; def _SLASH_Qpar_report : CLJoined<"Qpar-report">; def _SLASH_Qsafe_fp_loads : CLFlag<"Qsafe_fp_loads">; def _SLASH_Qspectre : CLFlag<"Qspectre">; +def _SLASH_Qspectre_load : CLFlag<"Qspectre-load">; +def _SLASH_Qspectre_load_cf : CLFlag<"Qspectre-load-cf">; def _SLASH_Qvec_report : CLJoined<"Qvec-report">; def _SLASH_u : CLFlag<"u">; def _SLASH_V : CLFlag<"V">; diff --git a/clang/test/Driver/cl-options.c b/clang/test/Driver/cl-options.c index b5dd667..f230caa 100644 --- a/clang/test/Driver/cl-options.c +++ b/clang/test/Driver/cl-options.c @@ -464,6 +464,8 @@ // RUN: /Qpar-report:1 \ // RUN: /Qsafe_fp_loads \ // RUN: /Qspectre \ +// RUN: /Qspectre-load \ +// RUN: /Qspectre-load-cf \ // RUN: /Qvec-report:2 \ // RUN: /u \ // RUN: /V \ -- 2.7.4