diff options
author | Fangrui Song <maskray@google.com> | 2019-04-12 02:02:06 +0000 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-04-12 02:02:06 +0000 |
commit | cecc4352508928f7ceeeee92fcde2986a5c55535 (patch) | |
tree | fd00bcfc8259cefe24787b0c848cedd79ff9137f /llvm/lib/Bitcode | |
parent | 21375ca136025f2a6dc55418d43630455ca0e98b (diff) | |
download | bcm5719-llvm-cecc4352508928f7ceeeee92fcde2986a5c55535.tar.gz bcm5719-llvm-cecc4352508928f7ceeeee92fcde2986a5c55535.zip |
Use llvm::lower_bound. NFC
This reapplies rL358161. That commit inadvertently reverted an exegesis file to an old version.
llvm-svn: 358246
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r-- | llvm/lib/Bitcode/Reader/ValueList.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/ValueList.cpp b/llvm/lib/Bitcode/Reader/ValueList.cpp index 4b482de640c..6cf1f4c1dd9 100644 --- a/llvm/lib/Bitcode/Reader/ValueList.cpp +++ b/llvm/lib/Bitcode/Reader/ValueList.cpp @@ -180,8 +180,8 @@ void BitcodeReaderValueList::resolveConstantForwardRefs() { NewOp = RealVal; } else { // Otherwise, look up the placeholder in ResolveConstants. - ResolveConstantsTy::iterator It = std::lower_bound( - ResolveConstants.begin(), ResolveConstants.end(), + ResolveConstantsTy::iterator It = llvm::lower_bound( + ResolveConstants, std::pair<Constant *, unsigned>(cast<Constant>(*I), 0)); assert(It != ResolveConstants.end() && It->first == *I); NewOp = operator[](It->second); |