[clang] fix destructor placement for temporaries in conditionals

Summary:
The previous code would call the destructor for the C++ temporary
*before* the prune nodes, which then try to dereference it. Wrong.

Quick fix: don't destroy temporaries in conditionals.

Reviewed By: mbouaziz

Differential Revision: D16030735

fbshipit-source-id: e11abad58
master
Jules Villard 6 years ago committed by Facebook Github Bot
parent cb9ee662c8
commit 58b1df6bb9
Loading…
Cancel
Save