fix clang crash when using -O3 optimization with string encryption pass