aboutsummaryrefslogtreecommitdiff
path: root/paludis/util/visitor.hh
diff options
context:
space:
mode:
Diffstat (limited to 'paludis/util/visitor.hh')
-rw-r--r--paludis/util/visitor.hh4
1 files changed, 1 insertions, 3 deletions
diff --git a/paludis/util/visitor.hh b/paludis/util/visitor.hh
index a49776e8e..4757c0b68 100644
--- a/paludis/util/visitor.hh
+++ b/paludis/util/visitor.hh
@@ -271,9 +271,7 @@ namespace paludis
virtual void forward_visit(typename TypeList_::Item & n)
{
- /* avoid gcc being too clever about noreturn */
- if (this)
- static_cast<RealClass_ *>(this)->perform_visit(n);
+ static_cast<RealClass_ *>(this)->perform_visit(n);
}
};