diff options
author | Kazu Hirata <kazu@google.com> | 2022-06-25 11:56:50 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-06-25 11:56:50 -0700 |
commit | 3b7c3a654c9175f41ac871a937cbcae73dfb3c5d (patch) | |
tree | 21094939ea6c8b726c481d7b28eaf4ea27c64008 /llvm/lib/CodeGen/BasicBlockSections.cpp | |
parent | aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d (diff) | |
download | llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.zip llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.tar.gz llvm-3b7c3a654c9175f41ac871a937cbcae73dfb3c5d.tar.bz2 |
Revert "Don't use Optional::hasValue (NFC)"
This reverts commit aa8feeefd3ac6c78ee8f67bf033976fc7d68bc6d.
Diffstat (limited to 'llvm/lib/CodeGen/BasicBlockSections.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BasicBlockSections.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/BasicBlockSections.cpp b/llvm/lib/CodeGen/BasicBlockSections.cpp index b6b018c..e6f4e39 100644 --- a/llvm/lib/CodeGen/BasicBlockSections.cpp +++ b/llvm/lib/CodeGen/BasicBlockSections.cpp @@ -234,8 +234,9 @@ assignSections(MachineFunction &MF, // If we already have one cluster containing eh_pads, this must be updated // to ExceptionSectionID. Otherwise, we set it equal to the current // section ID. - EHPadsSectionID = EHPadsSectionID ? MBBSectionID::ExceptionSectionID - : MBB.getSectionID(); + EHPadsSectionID = EHPadsSectionID.hasValue() + ? MBBSectionID::ExceptionSectionID + : MBB.getSectionID(); } } |