mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
fix uninitialized value warning in compile.cpp
Clang was complaining that newIp might be used uninitialized at the bottom of our giant, unstructured compile loop, so I initialized it with a bogus value, which means it will at least fail consistently if Clang is right and there really is a path by which that code is reached without otherwise initializing newIp.
This commit is contained in:
parent
ef3e3d749b
commit
e19bdda13e
@ -4007,7 +4007,7 @@ compile(MyThread* t, Frame* initialFrame, unsigned initialIp,
|
||||
unsigned stackSize = codeMaxStack(t, methodCode(t, context->method));
|
||||
Stack stack(t);
|
||||
unsigned ip = initialIp;
|
||||
unsigned newIp;
|
||||
unsigned newIp = -1;
|
||||
stack.pushValue(Return);
|
||||
|
||||
start:
|
||||
|
Loading…
Reference in New Issue
Block a user