Push LLVMContexts through the IntegerType APIs.
[oota-llvm.git] / lib / VMCore / Function.cpp
index 481300500c628b4b3981897ff5698be2e73c3a8b..8ad885c4c23d14a062b12059338de0f7d4e04114 100644 (file)
@@ -182,7 +182,7 @@ void Function::BuildLazyArguments() const {
   // Create the arguments vector, all arguments start out unnamed.
   const FunctionType *FT = getFunctionType();
   for (unsigned i = 0, e = FT->getNumParams(); i != e; ++i) {
-    assert(FT->getParamType(i) != Type::VoidTy &&
+    assert(FT->getParamType(i) != Type::getVoidTy(FT->getContext()) &&
            "Cannot have void typed arguments!");
     ArgumentList.push_back(new Argument(FT->getParamType(i)));
   }