Merge pull request #526 from klickverbot/newclass-signature

Correct signature of _d_newclass runtime call.
This commit is contained in:
Kai Nacke 2013-10-23 21:43:11 -07:00
commit e5fe110280
5 changed files with 8 additions and 8 deletions

View file

@ -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) {