yvvan added a comment. This actually fixes the ability to run safely without threads. This happens because by default this solution leads to try/catch block instead of the direct function call which is implemented in deleted if blocks. https://reviews.llvm.org/D37554