summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimur Iskhodzhanov <timurrrr@google.com>2013-05-07 07:47:47 +0000
committerTimur Iskhodzhanov <timurrrr@google.com>2013-05-07 07:47:47 +0000
commit664fbee9c888c7cd1e7ba7943e9cce96a104ea5e (patch)
tree1ec4c58b3e60beed7fe0444c462908fdff8ade7d
parent338eba7380fe82d93ea869186cd20c6e2a8e562d (diff)
downloadllvm-664fbee9c888c7cd1e7ba7943e9cce96a104ea5e.tar.gz
llvm-664fbee9c888c7cd1e7ba7943e9cce96a104ea5e.tar.bz2
llvm-664fbee9c888c7cd1e7ba7943e9cce96a104ea5e.tar.xz
Fix the VS2010 build broken by r181271
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181296 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfDebug.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
index dd233eaa1b..aeaa63f2af 100644
--- a/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
+++ b/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
@@ -606,7 +606,8 @@ DIE *DwarfDebug::constructScopeDIE(CompileUnit *TheCU, LexicalScope *Scope) {
std::pair<ImportedEntityMap::const_iterator,
ImportedEntityMap::const_iterator> Range = std::equal_range(
ScopesWithImportedEntities.begin(), ScopesWithImportedEntities.end(),
- std::pair<const MDNode *, const MDNode *>(DS, 0), CompareFirst());
+ std::pair<const MDNode *, const MDNode *>(DS, (const MDNode*)0),
+ CompareFirst());
if (Children.empty() && Range.first == Range.second)
return NULL;
ScopeDIE = constructLexicalScopeDIE(TheCU, Scope);