Ported to clang.