c++: Fix null this pointer [PR 98624]
authorNathan Sidwell <nathan@acm.org>
Tue, 19 Jan 2021 19:31:57 +0000 (11:31 -0800)
committerNathan Sidwell <nathan@acm.org>
Tue, 19 Jan 2021 19:37:03 +0000 (11:37 -0800)
commit6e6f3ed47e5cb575819f8253e42313664b89b042
treec4aab6509d3f384e5689b66d6de8bbc899d4afdb
parent6a2a38620cf178b53b217051f32d1d7bbba86fc9
c++: Fix null this pointer [PR 98624]

There's no need for this function to have an object, so make it
static and avoid UB.

PR c++/98624
gcc/cp/
* module.cc (trees_out::write_location): Make static.
gcc/cp/module.cc