Skip to content

Commit f9180b3

Browse files
committed
Fix method signature
1 parent 1a300f9 commit f9180b3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/include/llvm/IR/InstrTypes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2165,11 +2165,11 @@ class CallBase : public Instruction {
21652165
return false;
21662166
}
21672167

2168-
/// Return rounding mode specified by operand bundles.
2168+
/// Return rounding mode specified for this call.
21692169
RoundingMode getRoundingMode() const;
21702170

2171-
/// Return exception behavior specified by operand bundles.
2172-
std::optional<fp::ExceptionBehavior> getExceptionBehavior() const;
2171+
/// Return exception behavior specified for this call.
2172+
fp::ExceptionBehavior getExceptionBehavior() const;
21732173

21742174
/// Used to keep track of an operand bundle. See the main comment on
21752175
/// OperandBundleUser above.

llvm/lib/IR/Instructions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ RoundingMode CallBase::getRoundingMode() const {
647647
return RoundingMode::NearestTiesToEven;
648648
}
649649

650-
std::optional<fp::ExceptionBehavior> CallBase::getExceptionBehavior() const {
650+
fp::ExceptionBehavior CallBase::getExceptionBehavior() const {
651651
// Try determining exception behavior from FP bundle.
652652
std::optional<fp::ExceptionBehavior> EB;
653653
if (auto ExceptionBundle = getOperandBundle(LLVMContext::OB_fp_except)) {

0 commit comments

Comments
 (0)