Skip to content

Commit

Permalink
Fix OperandStackTests Thread->sp field type
Browse files Browse the repository at this point in the history
The definition of this type has an extra level of indirection
that is not warranted and is actually incorrect. The only reason we
didn't find it is because this test is no longer executed by
default on platforms that support it (i.e. x86 for the time being).

Signed-off-by: Mark Stoodley <mstoodle@ca.ibm.com>
  • Loading branch information
mstoodle committed Mar 4, 2019
1 parent 352283f commit d33e0ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jitbuilder/release/cpp/samples/OperandStackTests.cpp
Expand Up @@ -585,7 +585,7 @@ OperandStackTestUsingStructMethod::OperandStackTestUsingStructMethod(OMR::JitBui
: OperandStackTestMethod(d)
{
d->DefineStruct("Thread");
d->DefineField("Thread", "sp", d->PointerTo(d->PointerTo(STACKVALUEILTYPE)), offsetof(Thread, sp));
d->DefineField("Thread", "sp", d->PointerTo(STACKVALUEILTYPE), offsetof(Thread, sp));
d->CloseStruct("Thread");

DefineParameter("thread", d->PointerTo("Thread"));
Expand Down

0 comments on commit d33e0ab

Please sign in to comment.