X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=lib%2FTransforms%2FUtils%2FLowerAllocations.cpp;h=f1721b3e5872e7dca3110831793b7988ab6b1dff;hp=1502fab759a4fdcf4e2235ee71ea04b844a080b7;hb=66c5fd6c537269eaef0f630fa14360dcaff6a295;hpb=8b7f14e970d87eb52ac34e443bb508a403a2ac0d diff --git a/lib/Transforms/Utils/LowerAllocations.cpp b/lib/Transforms/Utils/LowerAllocations.cpp index 1502fab759a..f1721b3e587 100644 --- a/lib/Transforms/Utils/LowerAllocations.cpp +++ b/lib/Transforms/Utils/LowerAllocations.cpp @@ -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; }