Will {{ˆ}}} still match a closing curly brace at the start of line? In general, there are tests that use }}} in the CHECK lines, and the change in how this sequence is parsed can affect them. Have you tried to run all LLVM and Clang tests with this change?