JDevlieghere added a comment. @jingham is this safe to land?
================ Comment at: lib/CodeGen/CGDebugInfo.cpp:2992 + std::string NameString = Name.str(); + llvm::raw_string_ostream ParameterizedName(NameString); + ParameterizedName << "<"; ---------------- ormris wrote: > JDevlieghere wrote: > > Why not use Name.str() directly? > I got "error: invalid initialization of non-const reference ... from rvalue > ...". Using NameString fixed the issue. Right, makes sense, you're using the string as the buffer :-) Repository: rC Clang https://reviews.llvm.org/D44842 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits