Fix a bug with not removing method level types after compilation
llvm-svn: 582
diff --git a/llvm/lib/Bytecode/Reader/Reader.cpp b/llvm/lib/Bytecode/Reader/Reader.cpp
index eab576e..71fec25 100644
--- a/llvm/lib/Bytecode/Reader/Reader.cpp
+++ b/llvm/lib/Bytecode/Reader/Reader.cpp
@@ -302,6 +302,9 @@
// 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);