projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39c987a
)
Fix long standing bug
author
Chris Lattner
<sabre@nondot.org>
Thu, 15 May 2003 18:25:13 +0000
(18:25 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 15 May 2003 18:25:13 +0000
(18:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6232
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/LowerAllocations.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/LowerAllocations.cpp
b/lib/Transforms/Utils/LowerAllocations.cpp
index 68fb74efaf650c34f4ba8eb3f3b96061d2ac2e9b..c5014b48e6a8a5df27f073ab8c843d31838d54b0 100644
(file)
--- a/
lib/Transforms/Utils/LowerAllocations.cpp
+++ b/
lib/Transforms/Utils/LowerAllocations.cpp
@@
-117,7
+117,7
@@
bool LowerAllocations::runOnBasicBlock(BasicBlock &BB) {
} else if (FreeInst *FI = dyn_cast<FreeInst>(I)) {
// Cast the argument to free into a ubyte*...
CastInst *MCast = new CastInst(FI->getOperand(0),
- PointerType::get(Type::
U
ByteTy), "", I);
+ PointerType::get(Type::
S
ByteTy), "", I);
// Insert a call to the free function...
CallInst *FCall = new CallInst(FreeFunc, std::vector<Value*>(1, MCast),