summaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 10:38:12 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 10:38:12 -0700
commite0e687a615c1fdb6ba034fc2e48b0834a372706f (patch)
tree79455a1fe4a3d455cbd304ca0c7c77dde47e1f61 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parente363c5963dc3ad5d9492d3f37055ad56a84411a5 (diff)
[llvm] Don't use Optional::hasValue (NFC)
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
index 93dd5466fdd8..76f036358ae8 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
@@ -87,7 +87,7 @@ extern "C" LLVM_EXTERNAL_VISIBILITY void LLVMInitializeWebAssemblyTarget() {
static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM,
const Triple &TT) {
- if (!RM.hasValue()) {
+ if (!RM) {
// Default to static relocation model. This should always be more optimial
// than PIC since the static linker can determine all global addresses and
// assume direct function calls.