[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Jan 14 13:05:02 PST 2003
Changes in directory llvm/lib/Transforms:
ExprTypeConvert.cpp updated: 1.66 -> 1.67
---
Log message:
Fix bug
---
Diffs of the changes:
Index: llvm/lib/Transforms/ExprTypeConvert.cpp
diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.66 llvm/lib/Transforms/ExprTypeConvert.cpp:1.67
--- llvm/lib/Transforms/ExprTypeConvert.cpp:1.66 Wed Nov 13 00:54:20 2002
+++ llvm/lib/Transforms/ExprTypeConvert.cpp Tue Jan 14 13:04:43 2003
@@ -274,6 +274,7 @@
//
if (GEP->getNumOperands() == 2 &&
GEP->getOperand(1)->getType() == Type::LongTy &&
+ PTy->getElementType()->isSized() &&
TD.getTypeSize(PTy->getElementType()) ==
TD.getTypeSize(GEP->getType()->getElementType())) {
const PointerType *NewSrcTy = PointerType::get(PVTy);
More information about the llvm-commits
mailing list