When a function takes a variable number of pointer arguments, with a zero
[oota-llvm.git] / lib / Transforms / Utils / LowerAllocations.cpp
index 1502fab759a4fdcf4e2235ee71ea04b844a080b7..f1721b3e5872e7dca3110831793b7988ab6b1dff 100644 (file)
@@ -83,7 +83,7 @@ bool LowerAllocations::doInitialization(Module &M) {
     MallocFunc = M.getOrInsertFunction("malloc", FT);
   }
   if (FreeFunc == 0)
-    FreeFunc = M.getOrInsertFunction("free"  , Type::VoidTy, SBPTy, 0);
+    FreeFunc = M.getOrInsertFunction("free"  , Type::VoidTy, SBPTy, (Type *)0);
 
   return true;
 }