We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45794b0 commit c8979a2Copy full SHA for c8979a2
1 file changed
lib/Interpreter/CppInterOp.cpp
@@ -3154,7 +3154,7 @@ namespace Cpp {
3154
auto* const Ctor = GetDefaultConstructor(Class);
3155
if (JitCall JC = MakeFunctionCallable(Ctor)) {
3156
if (arena) {
3157
- JC.Invoke(&arena, {}, (void*)0); // Tell Invoke to use placement new.
+ JC.Invoke(&arena, {}, (void*)~0); // Tell Invoke to use placement new.
3158
return arena;
3159
}
3160
0 commit comments