aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 22:59:26 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 22:59:26 -0700
commitca4af13e480e856f8f889c1e145308fc4eb69816 (patch)
treeb5372eb07d3ff696b42b5803dc28bceec68f5c78 /clang/lib/Frontend/CompilerInvocation.cpp
parent7a47ee51a145a40332311330ef45b5d62d8ae023 (diff)
downloadllvm-ca4af13e480e856f8f889c1e145308fc4eb69816.zip
llvm-ca4af13e480e856f8f889c1e145308fc4eb69816.tar.gz
llvm-ca4af13e480e856f8f889c1e145308fc4eb69816.tar.bz2
[clang] Don't use Optional::getValue (NFC)
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index d0d1709..c0eed3a 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1074,7 +1074,7 @@ static void initOption(AnalyzerOptions::ConfigTable &Config,
else
OptionField = DefaultVal;
} else
- OptionField = PossiblyInvalidVal.getValue();
+ OptionField = *PossiblyInvalidVal;
}
static void initOption(AnalyzerOptions::ConfigTable &Config,