Push LLVMContexts through the IntegerType APIs.
[oota-llvm.git] / lib / Bitcode / Reader / BitcodeReader.h
index bd048885a65ec8408026e7faca294f39cb612fce..a7853abbc980afa2df690d196554bf016c2fb78e 100644 (file)
@@ -196,7 +196,7 @@ public:
 private:
   const Type *getTypeByID(unsigned ID, bool isTypeTable = false);
   Value *getFnValueByID(unsigned ID, const Type *Ty) {
-    if (Ty == Type::MetadataTy)
+    if (Ty == Type::getMetadataTy(Context))
       return MDValueList.getValueFwdRef(ID);
     else
       return ValueList.getValueFwdRef(ID, Ty);