[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp

Chris Lattner lattner at cs.uiuc.edu
Fri Sep 13 17:30:18 PDT 2002


Changes in directory llvm/lib/Transforms:

ExprTypeConvert.cpp updated: 1.57 -> 1.58

---
Log message:


Change the MallocInst & AllocaInst ctors to take the allocated type, not the
pointer type returned.



---
Diffs of the changes:

Index: llvm/lib/Transforms/ExprTypeConvert.cpp
diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.57 llvm/lib/Transforms/ExprTypeConvert.cpp:1.58
--- llvm/lib/Transforms/ExprTypeConvert.cpp:1.57	Tue Sep 10 20:21:23 2002
+++ llvm/lib/Transforms/ExprTypeConvert.cpp	Fri Sep 13 17:28:40 2002
@@ -125,7 +125,7 @@
   }
 
   assert(AllocTy == Ty);
-  return new MallocInst(AllocTy, Expr.Var, Name);
+  return new MallocInst(AllocTy->getElementType(), Expr.Var, Name);
 }
 
 





More information about the llvm-commits mailing list