summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorAli Tamur <tamur@google.com>2019-04-11 17:35:20 +0000
committerAli Tamur <tamur@google.com>2019-04-11 17:35:20 +0000
commit7822b4618853a41aaa5ee3a7f14e0e32b1d29a64 (patch)
tree16ff223e5739891d3b6f700cb4f6daa63ad7d43a /llvm/lib/Bitcode
parent528b01e998474ac3ada4c5dcc1b99c1d594b0d37 (diff)
downloadbcm5719-llvm-7822b4618853a41aaa5ee3a7f14e0e32b1d29a64.tar.gz
bcm5719-llvm-7822b4618853a41aaa5ee3a7f14e0e32b1d29a64.zip
Revert "Use llvm::lower_bound. NFC"
This reverts commit rL358161. This patch have broken the test: llvm/test/tools/llvm-exegesis/X86/uops-CMOV16rm-noreg.s llvm-svn: 358199
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/ValueList.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/ValueList.cpp b/llvm/lib/Bitcode/Reader/ValueList.cpp
index 6cf1f4c1dd9..4b482de640c 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 = llvm::lower_bound(
- ResolveConstants,
+ ResolveConstantsTy::iterator It = std::lower_bound(
+ ResolveConstants.begin(), ResolveConstants.end(),
std::pair<Constant *, unsigned>(cast<Constant>(*I), 0));
assert(It != ResolveConstants.end() && It->first == *I);
NewOp = operator[](It->second);
OpenPOWER on IntegriCloud