diff options
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index df14e85..b203259 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -485,7 +485,7 @@ bool llvm::wouldInstructionBeTriviallyDead(Instruction *I, if (auto *FPI = dyn_cast<ConstrainedFPIntrinsic>(I)) { Optional<fp::ExceptionBehavior> ExBehavior = FPI->getExceptionBehavior(); - return ExBehavior.getValue() != fp::ebStrict; + return *ExBehavior != fp::ebStrict; } } |