HomePhabricator

Syndicate duplicate code between CallInst and InvokeInst

Authored by Serge Guelton <sguelton@quarkslab.com> on Feb 22 2018, 5:30 AM.

Description

Syndicate duplicate code between CallInst and InvokeInst

NFC intended, syndicate common code to a parametric base class. Part of the original problem is that InvokeInst is a TerminatorInst, unlike CallInst. the problem is solved by introducing a parametrized class paramtertized by its base.

Differential Revision: https://reviews.llvm.org/D40727

llvm-svn: 325778

Event Timeline

Serge Guelton <sguelton@quarkslab.com> committed rG1fb81bcb9bb4: Syndicate duplicate code between CallInst and InvokeInst (authored by Serge Guelton <sguelton@quarkslab.com>).Feb 22 2018, 5:30 AM