From 80420b0f92f42edc0a3cac4490a08adb8b2457dc Mon Sep 17 00:00:00 2001 From: ov-4 Date: Fri, 30 Jan 2026 03:29:51 +0000 Subject: Changed INTEGER from i32 to i64 --- lib/CodeGen/RuntimeCheck.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/RuntimeCheck.cc') diff --git a/lib/CodeGen/RuntimeCheck.cc b/lib/CodeGen/RuntimeCheck.cc index cab50d5..d51d78a 100644 --- a/lib/CodeGen/RuntimeCheck.cc +++ b/lib/CodeGen/RuntimeCheck.cc @@ -47,7 +47,7 @@ void RuntimeCheck::emitErrorAndExit(Value *Condition, Value *Msg, int Line) { } void RuntimeCheck::emitDivZeroCheck(Value *Divisor, int Line) { - Value *IsZero = Builder.CreateICmpEQ(Divisor, ConstantInt::get(TheContext, APInt(32, 0)), "is_zero"); + Value *IsZero = Builder.CreateICmpEQ(Divisor, ConstantInt::get(TheContext, APInt(64, 0)), "is_zero"); emitErrorAndExit(IsZero, DivZeroMsg, Line); } -- cgit v1.3.1-4-g156e