[llvm] r221931 - Fix nested namespace with decltype to hopefully work with MSVC

David Blaikie dblaikie at gmail.com
Thu Nov 13 13:56:58 PST 2014


Author: dblaikie
Date: Thu Nov 13 15:56:57 2014
New Revision: 221931

URL: http://llvm.org/viewvc/llvm-project?rev=221931&view=rev
Log:
Fix nested namespace with decltype to hopefully work with MSVC

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.

Modified:
    llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h

Modified: llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h?rev=221931&r1=221930&r2=221931&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h (original)
+++ llvm/trunk/utils/TableGen/CodeGenDAGPatterns.h Thu Nov 13 15:56:57 2014
@@ -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(); }
 





More information about the llvm-commits mailing list