LLVM is built with C++17, where left shift of any negative value is still UB. Detected with UBSan on the buildbot. This reverts commit 0647d103.