c++: Simplify tsubst_friend_function
authorNathan Sidwell <nathan@acm.org>
Thu, 14 May 2020 14:22:54 +0000 (07:22 -0700)
committerNathan Sidwell <nathan@acm.org>
Thu, 14 May 2020 14:22:54 +0000 (07:22 -0700)
commitddbaab134ca4603f7d4ac0d1646f40f9c13405ff
treec979a589bc9e1a3f2fd3f82b81f95c4f4a50d02c
parentea5a33d4536ce2af90255782bda0ada632952205
c++: Simplify tsubst_friend_function

tsubst_friend_function's control flow was a little complicated.  This
simplifies it, primarily by using more RAII.

* pt.c (tsubst_friend_function): Simplify control flow.
gcc/cp/ChangeLog
gcc/cp/pt.c