diff options
author | dim <dim@FreeBSD.org> | 2014-11-13 21:16:01 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-11-13 21:16:01 +0000 |
commit | 231e18d28bd0953fe8d5bd9def805eff71e1dca4 (patch) | |
tree | 9d96201afef207671206c68be68793f38c418d41 /contrib/llvm/lib | |
parent | 077a8b14ec3f0d00ec056b20dc578f3345fedb21 (diff) | |
download | FreeBSD-src-231e18d28bd0953fe8d5bd9def805eff71e1dca4.zip FreeBSD-src-231e18d28bd0953fe8d5bd9def805eff71e1dca4.tar.gz |
The fix imported into llvm in r274442 contains some C++11 constructs,
which gcc in base cannot handle. Replace these with C++98 equivalents.
While here, add the patch for the adapted fix.
Reported by: bz, kib
Pointy hat to: dim
MFC after: 1 week
X-MFC-With: r274442
Diffstat (limited to 'contrib/llvm/lib')
-rw-r--r-- | contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index a702bee..00ffe00 100644 --- a/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/contrib/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -629,8 +629,8 @@ void SDDbgInfo::erase(const SDNode *Node) { DbgValMapType::iterator I = DbgValMap.find(Node); if (I == DbgValMap.end()) return; - for (auto &Val: I->second) - Val->setIsInvalidated(); + for (unsigned J = 0, N = I->second.size(); J != N; ++J) + I->second[J]->setIsInvalidated(); DbgValMap.erase(I); } |