[llvm] r240748 - AsmPrinter: Explicitly scope iterator for MSVC
Duncan P. N. Exon Smith
dexonsmith at apple.com
Thu Jun 25 17:41:53 PDT 2015
Author: dexonsmith
Date: Thu Jun 25 19:41:53 2015
New Revision: 240748
URL: http://llvm.org/viewvc/llvm-project?rev=240748&view=rev
Log:
AsmPrinter: Explicitly scope iterator for MSVC
Try to placate bots by explicitly scoping a conversion constructor from
`iterator` to `const_iterator`.
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/5931/
Modified:
llvm/trunk/include/llvm/CodeGen/DIE.h
Modified: llvm/trunk/include/llvm/CodeGen/DIE.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/DIE.h?rev=240748&r1=240747&r2=240748&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/DIE.h (original)
+++ llvm/trunk/include/llvm/CodeGen/DIE.h Thu Jun 25 19:41:53 2015
@@ -512,7 +512,8 @@ public:
public:
const_iterator() = default;
- const_iterator(iterator X) : N(X.N) {}
+ // Placate MSVC by explicitly scoping 'iterator'.
+ const_iterator(IntrusiveBackList::iterator X) : N(X.N) {}
explicit const_iterator(const T *N) : N(N) {}
const_iterator &operator++() {
More information about the llvm-commits
mailing list