Fix compile with gcc 14.2.1 (#1594)

* Fix compile with gcc 14.2.1 Fixes -Werror=maybe-uninitialized warnings
* Updated to use INVALID_PTR rather than NULL.
---------

Co-authored-by: Christoffer Lerno <christoffer@aegik.com>
This commit is contained in:
Waqar Ahmed
2024-11-04 04:20:14 +05:00
committed by GitHub
parent ba34b45651
commit 213831289a
4 changed files with 8 additions and 5 deletions

View File

@@ -2967,7 +2967,7 @@ static void llvm_emit_slice_values(GenContext *c, Expr *slice, BEValue *parent_r
// Emit the start and end
Type *start_type;
Type *start_type = (Type*)INVALID_PTR;
Range range = slice->slice_expr.range;
BEValue start_index;
switch (range.range_type)