[llvm] r252373 - Revert "ADT: Require explicit ilist iterator/pointer conversions"
Duncan P. N. Exon Smith via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 6 16:09:14 PST 2015
Author: dexonsmith
Date: Fri Nov 6 18:09:14 2015
New Revision: 252373
URL: http://llvm.org/viewvc/llvm-project?rev=252373&view=rev
Log:
Revert "ADT: Require explicit ilist iterator/pointer conversions"
This reverts commit r252372. Apparently I missed clang-tools-extra.
http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-ubuntu-fast/builds/2534/steps/build/logs/stdio
Modified:
llvm/trunk/include/llvm/ADT/ilist.h
Modified: llvm/trunk/include/llvm/ADT/ilist.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/ilist.h?rev=252373&r1=252372&r2=252373&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/ilist.h (original)
+++ llvm/trunk/include/llvm/ADT/ilist.h Fri Nov 6 18:09:14 2015
@@ -220,8 +220,8 @@ private:
template<class T> void operator-(T) const;
public:
- explicit ilist_iterator(pointer NP) : NodePtr(NP) {}
- explicit ilist_iterator(reference NR) : NodePtr(&NR) {}
+ ilist_iterator(pointer NP) : NodePtr(NP) {}
+ ilist_iterator(reference NR) : NodePtr(&NR) {}
ilist_iterator() : NodePtr(nullptr) {}
// This is templated so that we can allow constructing a const iterator from
@@ -241,7 +241,7 @@ public:
void reset(pointer NP) { NodePtr = NP; }
// Accessors...
- explicit operator pointer() const {
+ operator pointer() const {
return NodePtr;
}
More information about the llvm-commits
mailing list