Changes in directory llvm/lib/Transforms/IPO:
GlobalOpt.cpp updated: 1.107 -> 1.108 --- Log message: When rebuilding constant structs, make sure to honor the isPacked bit. This fixes PR1491: http://llvm.org/PR1491 and GlobalOpt/2007-06-04-PackedStruct.ll --- Diffs of the changes: (+1 -1) GlobalOpt.cpp | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) Index: llvm/lib/Transforms/IPO/GlobalOpt.cpp diff -u llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.107 llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.108 --- llvm/lib/Transforms/IPO/GlobalOpt.cpp:1.107 Tue May 15 01:42:04 2007 +++ llvm/lib/Transforms/IPO/GlobalOpt.cpp Mon Jun 4 17:23:42 2007 @@ -1625,7 +1625,7 @@ Elts[Idx] = EvaluateStoreInto(Elts[Idx], Val, Addr, OpNo+1); // Return the modified struct. - return ConstantStruct::get(Elts); + return ConstantStruct::get(&Elts[0], Elts.size(), STy->isPacked()); } else { ConstantInt *CI = cast<ConstantInt>(Addr->getOperand(OpNo)); const ArrayType *ATy = cast<ArrayType>(Init->getType()); _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits