aboutsummaryrefslogtreecommitdiff
path: root/lib/Bytecode/Reader/Reader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Bytecode/Reader/Reader.cpp')
-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);