From fcacc74c7247ae4112bee01719c957dd7093198d Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 13 Nov 2014 21:56:57 +0000 Subject: [PATCH] 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. llvm-svn: 221931 --- llvm/utils/TableGen/CodeGenDAGPatterns.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/CodeGenDAGPatterns.h b/llvm/utils/TableGen/CodeGenDAGPatterns.h index 12ff996..c0812cf 100644 --- a/llvm/utils/TableGen/CodeGenDAGPatterns.h +++ b/llvm/utils/TableGen/CodeGenDAGPatterns.h @@ -786,7 +786,8 @@ public: return PatternFragments.find(R)->second.get(); } - typedef decltype(PatternFragments)::const_iterator pf_iterator; + typedef std::map, + LessRecordByID>::const_iterator pf_iterator; pf_iterator pf_begin() const { return PatternFragments.begin(); } pf_iterator pf_end() const { return PatternFragments.end(); } -- 2.7.4