aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-26 21:33:52 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-26 21:33:52 +0000
commit06b0feb230088e4ff116b72c9e9f8ddefcac9694 (patch)
treecf741dc793ea30768d89452c620c626640b35c04 /lib/Bitcode/Reader/BitcodeReader.cpp
parentefab5a9c1abf0dab2c8a54be7b00afcdd32add00 (diff)
downloadexternal_llvm-06b0feb230088e4ff116b72c9e9f8ddefcac9694.zip
external_llvm-06b0feb230088e4ff116b72c9e9f8ddefcac9694.tar.gz
external_llvm-06b0feb230088e4ff116b72c9e9f8ddefcac9694.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 'lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 2 insertions, 2 deletions
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;
}