diff options
Diffstat (limited to 'examples/ParallelJIT/ParallelJIT.cpp')
-rw-r--r-- | examples/ParallelJIT/ParallelJIT.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/ParallelJIT/ParallelJIT.cpp b/examples/ParallelJIT/ParallelJIT.cpp index f920558..31cadc3 100644 --- a/examples/ParallelJIT/ParallelJIT.cpp +++ b/examples/ParallelJIT/ParallelJIT.cpp @@ -221,12 +221,12 @@ void* callFunc( void* param ) // Call the `foo' function with no arguments: std::vector<GenericValue> Args(1); - Args[0].Int32Val = p->value; + Args[0].IntVal = APInt(32, p->value); synchronize.block(); // wait until other threads are at this point GenericValue gv = p->EE->runFunction(p->F, Args); - return (void*) intptr_t(gv.Int32Val); + return (void*)(intptr_t)gv.IntVal.getZExtValue(); } int main() |