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 | 2d3024d838d72caf9718eb80f40dd3c6479994fe (patch) | |
tree | b089c49ff896f5a390f70e02b4e9f98e7632e721 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | a61cc6ece0201d5f1978dc2c47455add1a01577e (diff) | |
download | bcm5719-llvm-2d3024d838d72caf9718eb80f40dd3c6479994fe.tar.gz bcm5719-llvm-2d3024d838d72caf9718eb80f40dd3c6479994fe.zip |
eliminate calls to deprecated Use::init() interface
llvm-svn: 51570
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 4fa08a0f3ab..818b47c2709 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/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; } |