summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/ValueList.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-02-15 10:09:48 +0100
committerNikita Popov <npopov@redhat.com>2022-02-15 10:11:01 +0100
commit093e9489d59eb2204bf86e4deb788abb2a27533b (patch)
tree190980cb97adfd6b8d61c21f2ac9f7be595623cc /llvm/lib/Bitcode/Reader/ValueList.cpp
parenta081a0654f35c12ddc2afc072110098404434b6c (diff)
[BitcodeReader] Change order of assignValue() arguments (NFC)
Other methods in ValueList generally pass Idx first, and it is more convention for assignment methods to have the target on the LHS rather than RHS.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/ValueList.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/ValueList.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/ValueList.cpp b/llvm/lib/Bitcode/Reader/ValueList.cpp
index 2ed547efa5dd..2be1f625d053 100644
--- a/llvm/lib/Bitcode/Reader/ValueList.cpp
+++ b/llvm/lib/Bitcode/Reader/ValueList.cpp
@@ -60,7 +60,7 @@ DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantPlaceHolder, Value)
} // end namespace llvm
-void BitcodeReaderValueList::assignValue(Value *V, unsigned Idx) {
+void BitcodeReaderValueList::assignValue(unsigned Idx, Value *V) {
if (Idx == size()) {
push_back(V);
return;