[llvm-commits] CVS: llvm/lib/VMCore/Instructions.cpp
Chris Lattner
clattner at apple.com
Wed Jan 31 15:30:22 PST 2007
On Jan 31, 2007, at 2:30 PM, Reid Spencer wrote:
> Instructions.cpp updated: 1.68 -> 1.69
> ---
> Log message:
>
> Fix build breakage by using correct arguments to getIndexedType in the
> GEP constructors.
Thanks Reid, sorry for the breakage :(
-Chris
>
>
> ---
> Diffs of the changes: (+10 -6)
>
> Instructions.cpp | 16 ++++++++++------
> 1 files changed, 10 insertions(+), 6 deletions(-)
>
>
> Index: llvm/lib/VMCore/Instructions.cpp
> diff -u llvm/lib/VMCore/Instructions.cpp:1.68 llvm/lib/VMCore/
> Instructions.cpp:1.69
> --- llvm/lib/VMCore/Instructions.cpp:1.68 Wed Jan 31 13:47:18 2007
> +++ llvm/lib/VMCore/Instructions.cpp Wed Jan 31 16:30:26 2007
> @@ -711,7 +711,8 @@
> GetElementPtrInst::GetElementPtrInst(Value *Ptr, const
> std::vector<Value*> &Idx,
> const std::string &Name,
> Instruction *InBe)
> : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),
> - Idx,
> true))),
> + &Idx[0],
> Idx.size(),
> + true))),
> GetElementPtr, 0, 0, Name, InBe) {
> init(Ptr, &Idx[0], Idx.size());
> }
> @@ -719,7 +720,8 @@
> GetElementPtrInst::GetElementPtrInst(Value *Ptr, const
> std::vector<Value*> &Idx,
> const std::string &Name,
> BasicBlock *IAE)
> : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),
> - Idx,
> true))),
> + &Idx[0],
> Idx.size(),
> + true))),
> GetElementPtr, 0, 0, Name, IAE) {
> init(Ptr, &Idx[0], Idx.size());
> }
> @@ -728,7 +730,7 @@
> unsigned NumIdx,
> const std::string &Name,
> Instruction *InBe)
> : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),
> - Idx, true))),
> + Idx,
> NumIdx, true))),
> GetElementPtr, 0, 0, Name, InBe) {
> init(Ptr, Idx, NumIdx);
> }
> @@ -737,21 +739,23 @@
> unsigned NumIdx,
> const std::string &Name,
> BasicBlock *IAE)
> : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),
> - Idx, true))),
> + Idx,
> NumIdx, true))),
> GetElementPtr, 0, 0, Name, IAE) {
> init(Ptr, Idx, NumIdx);
> }
>
> GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
> const std::string &Name,
> Instruction *InBe)
> - : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),Idx))),
> + : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),
> + Idx))),
> GetElementPtr, 0, 0, Name, InBe) {
> init(Ptr, Idx);
> }
>
> GetElementPtrInst::GetElementPtrInst(Value *Ptr, Value *Idx,
> const std::string &Name,
> BasicBlock *IAE)
> - : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),Idx))),
> + : Instruction(PointerType::get(checkType(getIndexedType(Ptr-
> >getType(),
> + Idx))),
> GetElementPtr, 0, 0, Name, IAE) {
> init(Ptr, Idx);
> }
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list