llvmorg-github-actions[bot] wrote:
<!--LLVM PR SUMMARY COMMENT--> @llvm/pr-subscribers-clang Author: Timm Baeder (tbaederr) <details> <summary>Changes</summary> --- Full diff: https://github.com/llvm/llvm-project/pull/224288.diff 1 Files Affected: - (modified) clang/lib/AST/ByteCode/InterpBuiltin.cpp (+2-4) ``````````diff diff --git a/clang/lib/AST/ByteCode/InterpBuiltin.cpp b/clang/lib/AST/ByteCode/InterpBuiltin.cpp index b8e9abed839c65..843850af334a2b 100644 --- a/clang/lib/AST/ByteCode/InterpBuiltin.cpp +++ b/clang/lib/AST/ByteCode/InterpBuiltin.cpp @@ -861,11 +861,9 @@ static bool interp__builtin_expect(InterpState &S, CodePtr OpPC, if (NumArgs == 3) S.Stk.discard<Floating>(); discard(S.Stk, ArgT); + // Top of the stack is now the first paramter. Leave it there as the return + // value. - APSInt Val; - if (!popToAPSInt(S.Stk, ArgT, Val)) - return false; - pushInteger(S, Val, Call->getType()); return true; } `````````` </details> https://github.com/llvm/llvm-project/pull/224288 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
