aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-06-20 22:45:45 -0700
committerKazu Hirata <kazu@google.com>2022-06-20 22:45:45 -0700
commit7a47ee51a145a40332311330ef45b5d62d8ae023 (patch)
tree2e7ac16bc8430595cbe68692d08111f028b5f995 /llvm/lib/Transforms/Utils/Local.cpp
parent9cfbe7bbfea762d72b60c51c8ab5dadf6b317a9a (diff)
downloadllvm-7a47ee51a145a40332311330ef45b5d62d8ae023.zip
llvm-7a47ee51a145a40332311330ef45b5d62d8ae023.tar.gz
llvm-7a47ee51a145a40332311330ef45b5d62d8ae023.tar.bz2
[llvm] Don't use Optional::getValue (NFC)
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
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;
}
}