Fix a warning/error where C compilers can not predict that a variable is initialized

This commit is contained in:
Yhya Ibrahim
2024-07-31 17:23:36 +03:00
committed by Christoffer Lerno
parent d6490c9bab
commit 8c33b073c2

View File

@@ -950,7 +950,8 @@ static inline void llvm_optimize(GenContext *c)
#ifndef NDEBUG
should_debug = debug_log;
#endif
LLVMOptLevels level;
LLVMOptLevels level = LLVM_O0;
switch (active_target.optsize)
{
case SIZE_OPTIMIZATION_SMALL: