Permalink
Browse files

Update for LLVM API change to make Small(Ptr)Set::insert return pair<…

…iterator, bool> as per the C++ standard's associative container concept.

git-svn-id: https://llvm.org/svn/llvm-project/dragonegg/trunk@222350 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information...
chapuni committed Nov 19, 2014
1 parent 31920a3 commit 72844cabb00c1fe46cb1c6cd452f8c283d4f28ef
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Convert.cpp
View
@@ -2704,7 +2704,7 @@ void TreeToLLVM::EmitLandingPads() {
for (tree type = c->type_list; type; type = TREE_CHAIN(type)) {
Constant *TypeInfo = ConvertTypeInfo(TREE_VALUE(type));
// No point in trying to catch a typeinfo that was already caught.
if (!AlreadyCaught.insert(TypeInfo))
if (!AlreadyCaught.insert(TypeInfo).second)
continue;
LPadInst->addClause(TypeInfo);
}
@@ -8798,7 +8798,7 @@ bool TreeToLLVM::EmitBuiltinCall(gimple stmt, tree fndecl,
for (tree type = c->type_list; type; type = TREE_CHAIN(type)) {
Value *TypeInfo = ConvertTypeInfo(TREE_VALUE(type));
// No point in trying to catch a typeinfo that was already caught.
if (!AlreadyCaught.insert(TypeInfo))
if (!AlreadyCaught.insert(TypeInfo).second)
continue;
TypeInfo = Builder.CreateBitCast(TypeInfo, Builder.getInt8PtrTy());

0 comments on commit 72844ca

Please sign in to comment.