diff options
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/Reader.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index f93e73d42f..5cb20790b9 100644 --- a/lib/Bytecode/Reader/Reader.cpp +++ b/lib/Bytecode/Reader/Reader.cpp @@ -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; |