diff options
| author | Kazu Hirata <kazu@google.com> | 2022-06-20 10:38:12 -0700 |
|---|---|---|
| committer | Kazu Hirata <kazu@google.com> | 2022-06-20 10:38:12 -0700 |
| commit | e0e687a615c1fdb6ba034fc2e48b0834a372706f (patch) | |
| tree | 79455a1fe4a3d455cbd304ca0c7c77dde47e1f61 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | |
| parent | e363c5963dc3ad5d9492d3f37055ad56a84411a5 (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.cpp | 2 |
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. |
