Skip to content
Commit 03efc1fa authored by Milian Wolff's avatar Milian Wolff
Browse files

Cleanup code and fix crash on shutdown/exit for clang builds.

We move CppUtils::ReplaceCurrentAccess's logic to a file-local
MainThreadHelper in context.cpp. This fixes the crash for me:

...
********* Finished testing of TestCppAssistants *********
./cpp/tests/cppassistantstest.shell: line 4: 22878 Segmentation fault

GDB showed that this is in the global static dtor of
CppUtils::ReplaceCurrentAccess.
parent 9d3d24b3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment