summaryrefslogtreecommitdiff
path: root/lib/Bytecode
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-09-14 22:03:42 +0000
committerChris Lattner <sabre@nondot.org>2001-09-14 22:03:42 +0000
commite4d71a1e183198db4378b1f295237f2f80d69a4f (patch)
treefaaa4af1dbc0c6cb1ec1c57ce33dd6946040852c /lib/Bytecode
parent1506aef6d4c31e1f8ddc31b1d838e2b10b9694be (diff)
downloadllvm-e4d71a1e183198db4378b1f295237f2f80d69a4f.tar.gz
llvm-e4d71a1e183198db4378b1f295237f2f80d69a4f.tar.bz2
llvm-e4d71a1e183198db4378b1f295237f2f80d69a4f.tar.xz
Fix a bug with not removing method level types after compilation
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@582 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode')
-rw-r--r--lib/Bytecode/Reader/Reader.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Bytecode/Reader/Reader.cpp b/lib/Bytecode/Reader/Reader.cpp
index eab576e541..71fec255cc 100644
--- a/lib/Bytecode/Reader/Reader.cpp
+++ b/lib/Bytecode/Reader/Reader.cpp
@@ -302,6 +302,9 @@ bool BytecodeParser::ParseMethod(const uchar *&Buf, const uchar *EndBuf,
// Replace placeholder with the real method pointer...
ModuleValues[type][MethSlot] = M;
+ // Clear out method level types...
+ MethodTypeValues.clear();
+
// If anyone is using the placeholder make them use the real method instead
MethPHolder->replaceAllUsesWith(M);