fix Clang creg issue