projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
When a function takes a variable number of pointer arguments, with a zero
[oota-llvm.git]
/
lib
/
Transforms
/
Utils
/
LowerAllocations.cpp
diff --git
a/lib/Transforms/Utils/LowerAllocations.cpp
b/lib/Transforms/Utils/LowerAllocations.cpp
index 1502fab759a4fdcf4e2235ee71ea04b844a080b7..f1721b3e5872e7dca3110831793b7988ab6b1dff 100644
(file)
--- 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;
}