Skip to content

Commit 37093d7

Browse files
committed
fix
1 parent 89a87ca commit 37093d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/AST/ByteCode/InterpBuiltin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ static bool interp__builtin_fma(InterpState &S, CodePtr OpPC,
571571
Floating Result;
572572

573573
llvm::RoundingMode RM = getActiveRoundingMode(S, Call);
574-
if (!Floating::fma(X, Y, Z, RM, &Result))
574+
if (Floating::fma(X, Y, Z, RM, &Result) != APFloat::opOK)
575575
return false;
576576

577577
S.Stk.push<Floating>(Result);

0 commit comments

Comments
 (0)