mirror of
https://github.com/corda/corda.git
synced 2025-01-08 14:03:06 +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));
|
unsigned stackSize = codeMaxStack(t, methodCode(t, context->method));
|
||||||
Stack stack(t);
|
Stack stack(t);
|
||||||
unsigned ip = initialIp;
|
unsigned ip = initialIp;
|
||||||
unsigned newIp;
|
unsigned newIp = -1;
|
||||||
stack.pushValue(Return);
|
stack.pushValue(Return);
|
||||||
|
|
||||||
start:
|
start:
|
||||||
|
Loading…
Reference in New Issue
Block a user