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:
Joel Dice 2014-01-02 17:44:33 -07:00
parent ef3e3d749b
commit e19bdda13e

View File

@ -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: