aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorMomchil Velikov <momchil.velikov@arm.com>2023-12-04 16:16:55 +0000
committerGitHub <noreply@github.com>2023-12-04 16:16:55 +0000
commite3a97dffee93f03e12b5911869f9a443c39821bc (patch)
treeb713c1c2e80572c47904a45d9308560759928748 /clang/lib/Frontend/CompilerInvocation.cpp
parentec000a65553bac55a1f4b8b21c365d48dc6a540a (diff)
downloadllvm-e3a97dffee93f03e12b5911869f9a443c39821bc.zip
llvm-e3a97dffee93f03e12b5911869f9a443c39821bc.tar.gz
llvm-e3a97dffee93f03e12b5911869f9a443c39821bc.tar.bz2
[Verifier] Check function attributes related to branch protection (NFC) (#70565)
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index a6188cb..be0d496 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -4159,10 +4159,10 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
if (Arg *A = Args.getLastArg(OPT_msign_return_address_key_EQ)) {
StringRef SignKey = A->getValue();
if (!SignScope.empty() && !SignKey.empty()) {
- if (SignKey.equals_insensitive("a_key"))
+ if (SignKey == "a_key")
Opts.setSignReturnAddressKey(
LangOptions::SignReturnAddressKeyKind::AKey);
- else if (SignKey.equals_insensitive("b_key"))
+ else if (SignKey == "b_key")
Opts.setSignReturnAddressKey(
LangOptions::SignReturnAddressKeyKind::BKey);
else