[PATCH] D44842: Add Parameters to DW_AT_name Attribute of Template Variables
Matthew Voss via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 27 12:05:45 PDT 2018
ormris added inline comments.
================
Comment at: lib/CodeGen/CGDebugInfo.cpp:2992
+ std::string NameString = Name.str();
+ llvm::raw_string_ostream ParameterizedName(NameString);
+ ParameterizedName << "<";
----------------
JDevlieghere wrote:
> Why not use Name.str() directly?
I got "error: invalid initialization of non-const reference ... from rvalue ...". Using NameString fixed the issue.
Repository:
rC Clang
https://reviews.llvm.org/D44842
More information about the cfe-commits
mailing list