mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01:00
Merge pull request #526 from klickverbot/newclass-signature
Correct signature of _d_newclass runtime call.
This commit is contained in:
@@ -146,6 +146,7 @@ namespace {
|
||||
: TypeInfoArgNr(typeInfoArgNr),
|
||||
SafeToDelete(safeToDelete),
|
||||
ReturnsArray(returnsArray) {}
|
||||
virtual ~FunctionInfo() {}
|
||||
};
|
||||
|
||||
class ArrayFI : public FunctionInfo {
|
||||
@@ -251,7 +252,7 @@ namespace {
|
||||
}
|
||||
};
|
||||
|
||||
// FunctionInfo for _d_allocclass
|
||||
// FunctionInfo for _d_newclass
|
||||
class AllocClassFI : public FunctionInfo {
|
||||
public:
|
||||
virtual bool analyze(CallSite CS, const Analysis& A) {
|
||||
@@ -358,7 +359,7 @@ GarbageCollect2Stack::GarbageCollect2Stack()
|
||||
KnownFunctions["_d_allocmemoryT"] = &AllocMemoryT;
|
||||
KnownFunctions["_d_newarrayvT"] = &NewArrayVT;
|
||||
KnownFunctions["_d_newarrayT"] = &NewArrayT;
|
||||
KnownFunctions[_d_allocclass] = &AllocClass;
|
||||
KnownFunctions["_d_newclass"] = &AllocClass;
|
||||
}
|
||||
|
||||
static void RemoveCall(CallSite CS, const Analysis& A) {
|
||||
|
||||
Reference in New Issue
Block a user