diff --git a/clang/lib/CodeGen/CGException.cpp b/clang/lib/CodeGen/CGException.cpp index bd5ae7582e06..5e4fb9881937 100644 --- a/clang/lib/CodeGen/CGException.cpp +++ b/clang/lib/CodeGen/CGException.cpp @@ -777,13 +777,9 @@ llvm::BasicBlock *CodeGenFunction::EmitLandingPad() { EHFilterScope &filter = cast(*I); hasFilter = true; - // Add all the filter values which we aren't already explicitly - // catching. - for (unsigned i = 0, e = filter.getNumFilters(); i != e; ++i) { - llvm::Value *filterType = filter.getFilter(i); - if (!catchTypes.count(filterType)) - filterTypes.push_back(filterType); - } + // Add all the filter values. + for (unsigned i = 0, e = filter.getNumFilters(); i != e; ++i) + filterTypes.push_back(filter.getFilter(i)); goto done; }