From 6c80c381601b17207b6b8f898cfe273a37584d52 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Mon, 26 May 2008 21:33:52 +0000 Subject: eliminate calls to deprecated Use::init() interface git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51570 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitcodeReader.cpp | 4 ++-- lib/Bitcode/Reader/BitcodeReader.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Bitcode') diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 4fa08a0..818b47c 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -180,7 +180,7 @@ Constant *BitcodeReaderValueList::getConstantFwdRef(unsigned Idx, // Create and return a placeholder, which will later be RAUW'd. Constant *C = new ConstantPlaceHolder(Ty); - OperandList[Idx].init(C, this); + OperandList[Idx] = C; return C; } @@ -201,7 +201,7 @@ Value *BitcodeReaderValueList::getValueFwdRef(unsigned Idx, const Type *Ty) { // Create and return a placeholder, which will later be RAUW'd. Value *V = new Argument(Ty); - OperandList[Idx].init(V, this); + OperandList[Idx] = V; return V; } diff --git a/lib/Bitcode/Reader/BitcodeReader.h b/lib/Bitcode/Reader/BitcodeReader.h index c35846f..9f62efec 100644 --- a/lib/Bitcode/Reader/BitcodeReader.h +++ b/lib/Bitcode/Reader/BitcodeReader.h @@ -89,7 +89,7 @@ private: resize(Idx * 2 + 1); } assert(getOperand(Idx) == 0 && "Cannot init an already init'd Use!"); - OperandList[Idx].init(V, this); + OperandList[Idx] = V; } }; -- cgit v1.1