diff options
author | Gabor Greif <ggreif@gmail.com> | 2008-05-26 21:33:52 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2008-05-26 21:33:52 +0000 |
commit | 6c80c381601b17207b6b8f898cfe273a37584d52 (patch) | |
tree | cf741dc793ea30768d89452c620c626640b35c04 /include/llvm/Instructions.h | |
parent | aadc6b68c7d5a30f1aa75196eeae577c178c2c07 (diff) | |
download | external_llvm-6c80c381601b17207b6b8f898cfe273a37584d52.zip external_llvm-6c80c381601b17207b6b8f898cfe273a37584d52.tar.gz external_llvm-6c80c381601b17207b6b8f898cfe273a37584d52.tar.bz2 |
eliminate calls to deprecated Use::init() interface
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index c354065..9a396aa 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -291,8 +291,8 @@ class StoreInst : public Instruction { StoreInst(const StoreInst &SI) : Instruction(SI.getType(), Store, &Op<0>(), 2) { - Op<0>().init(SI.Op<0>(), this); - Op<1>().init(SI.Op<1>(), this); + Op<0>() = SI.Op<0>(); + Op<1>() = SI.Op<1>(); setVolatile(SI.isVolatile()); setAlignment(SI.getAlignment()); @@ -1337,8 +1337,8 @@ public: class ExtractElementInst : public Instruction { ExtractElementInst(const ExtractElementInst &EE) : Instruction(EE.getType(), ExtractElement, &Op<0>(), 2) { - Op<0>().init(EE.Op<0>(), this); - Op<1>().init(EE.Op<1>(), this); + Op<0>() = EE.Op<0>(); + Op<1>() = EE.Op<1>(); } public: @@ -2010,8 +2010,8 @@ public: resizeOperands(0); // Get more space! // Initialize some new operands. NumOperands = OpNo+2; - OperandList[OpNo].init(V, this); - OperandList[OpNo+1].init(BB, this); + OperandList[OpNo] = V; + OperandList[OpNo+1] = BB; } /// removeIncomingValue - Remove an incoming value. This is useful if a |