Skip to content

Commit fd55002

Browse files
committed
Fix clang_construct
1 parent 954fb38 commit fd55002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Interpreter/CXCppInterOp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1348,12 +1348,12 @@ CXObject clang_construct(CXScope scope, void* arena) {
13481348
auto* I = getInterpreter(scope);
13491349
if (const Cpp::JitCall JC = Cpp::MakeFunctionCallableImpl(I, getDecl(Ctor))) {
13501350
if (arena) {
1351-
JC.Invoke(arena, {}, (void*)~0); // Tell Invoke to use placement new.
1351+
JC.Invoke(&arena, {}, (void*)~0); // Tell Invoke to use placement new.
13521352
return arena;
13531353
}
13541354

13551355
void* obj = nullptr;
1356-
JC.Invoke(obj);
1356+
JC.Invoke(&obj);
13571357
return obj;
13581358
}
13591359

0 commit comments

Comments
 (0)