From: Chris Lattner Date: Sun, 14 Oct 2001 23:28:41 +0000 (+0000) Subject: External methods shouldn't have argument lists X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b847f51bc83972178f29fe3634f38d6bfdc43bfd;p=oota-llvm.git External methods shouldn't have argument lists git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@807 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp index f93e73d42f7..5cb20790b91 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;