diff options
Diffstat (limited to 'llvm/lib/Target/AVR/AVRTargetMachine.cpp')
| -rw-r--r-- | llvm/lib/Target/AVR/AVRTargetMachine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/AVR/AVRTargetMachine.cpp b/llvm/lib/Target/AVR/AVRTargetMachine.cpp index 0c7136e6f77e..0fa8623e2fb7 100644 --- a/llvm/lib/Target/AVR/AVRTargetMachine.cpp +++ b/llvm/lib/Target/AVR/AVRTargetMachine.cpp @@ -37,7 +37,7 @@ static StringRef getCPU(StringRef CPU) { } static Reloc::Model getEffectiveRelocModel(Optional<Reloc::Model> RM) { - return RM.hasValue() ? *RM : Reloc::Static; + return RM.getValueOr(Reloc::Static); } AVRTargetMachine::AVRTargetMachine(const Target &T, const Triple &TT, |
