Fix nested namespace with decltype to hopefully work with MSVC
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Nov 2014 21:56:57 +0000 (21:56 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 13 Nov 2014 21:56:57 +0000 (21:56 +0000)
Build failed here:
http://lab.llvm.org:8011/builders/lld-x86_64-win7/builds/14629/steps/build_Lld/logs/stdio

So I'm taking a shot in the dark that MSVC (whatever version that is)
can't cope with nested name specifiers with a decltype prefix.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221931 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeGenDAGPatterns.h

index 12ff9968d1b059044c96be11d3ab8b1b1bb519ea..c0812cf05536465f11877c169fb4f302a695fdb4 100644 (file)
@@ -786,7 +786,8 @@ public:
     return PatternFragments.find(R)->second.get();
   }
 
-  typedef decltype(PatternFragments)::const_iterator pf_iterator;
+  typedef std::map<Record *, std::unique_ptr<TreePattern>,
+                   LessRecordByID>::const_iterator pf_iterator;
   pf_iterator pf_begin() const { return PatternFragments.begin(); }
   pf_iterator pf_end() const { return PatternFragments.end(); }