-
Tatsuhiro Tsujikawa authored
This is required to avoid creation of temporary ImmutableString like so: std::string x; ImmutableString y = ...; StringRef ref = !x.empty() ? x : y; First, temporary ImmutableString is created with x since ImmutableString has constructor to accept std::string. After StringRef gets this, the temporary ImmutableString is destroyed, and ref has dangling pointer.
03f7f8cb