mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 04:09:04 +00:00
External methods shouldn't have argument lists
llvm-svn: 807
This commit is contained in:
parent
c86be70de5
commit
9acb843577
@ -349,6 +349,10 @@ bool BytecodeParser::ParseMethod(const uchar *&Buf, const uchar *EndBuf,
|
||||
// We don't need the placeholder anymore!
|
||||
delete MethPHolder;
|
||||
|
||||
// If the method is empty, we don't need the method argument entries...
|
||||
if (M->isExternal())
|
||||
M->getArgumentList().delete_all();
|
||||
|
||||
DeclareNewGlobalValue(M, MethSlot);
|
||||
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user