================
@@ -199,6 +199,25 @@ static llvm::APSInt convertBoolVectorToInt(const Pointer 
&Val) {
   return Result;
 }
 
+static bool CheckFloatResult(InterpState &S, CodePtr OpPC,
+                             const APFloat &Result, APFloat::opStatus Status) {
+  if (S.inConstantContext())
+    return true;
+
----------------
Serosh-commits wrote:

> This seems suspicious.

nothing much i added it because aligns the helper with checkFloatingPointResult 
in ExprConstant.cpp by keeping the early return for constant-evaluated context 
just to be consistent with the old evaluator  i can add a comment there to 
explain it 

https://github.com/llvm/llvm-project/pull/194327
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to