Skip to content

Commit 98515e2

Browse files
committed
Make clang_allocate API a bit more generic
1 parent fd55002 commit 98515e2

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
@@ -1327,8 +1327,8 @@ bool clang_scope_isConstVariable(CXScope var) {
13271327
return false;
13281328
}
13291329

1330-
CXObject clang_allocate(CXScope S) {
1331-
return ::operator new(clang_scope_sizeOf(S));
1330+
CXObject clang_allocate(unsigned int n) {
1331+
return ::operator new(n);
13321332
}
13331333

13341334
void clang_deallocate(CXObject address) { ::operator delete(address); }

0 commit comments

Comments
 (0)