kparzysz added a comment. What is stage 1 compiler? One built using the default C++ compiler? If the problem happens when clang is built with -O0, why do you conclude that the problem is in the release build? https://reviews.llvm.org/D25791