In DwarfEHPrepare, after all passes are run, RewindFunction may be a dangling
authorYaron Keren <yaron.keren@gmail.com>
Sun, 14 Sep 2014 20:36:28 +0000 (20:36 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sun, 14 Sep 2014 20:36:28 +0000 (20:36 +0000)
commite1c77ca37a3c27064262bfdc22d0f3e62a4b789f
tree67dd605d3c58e2a7286224a4cda0986dfe83cb14
parenta0ba49844cc07d3bc2d1676859f9fe8750a715e9
In DwarfEHPrepare, after all passes are run, RewindFunction may be a dangling
pointer to a dead function. To make sure it's valid, doFinalization nullptrs
RewindFunction just like the constructor and so it will be found on next run.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217737 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/DwarfEHPrepare.cpp