We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e0cb7e commit a422079Copy full SHA for a422079
llvm/lib/Target/NVPTX/NVPTXAssignValidGlobalNames.cpp
@@ -74,6 +74,8 @@ std::string NVPTXAssignValidGlobalNames::cleanUpName(StringRef Name) {
74
std::string ValidName;
75
raw_string_ostream ValidNameStream(ValidName);
76
for (char C : Name) {
77
+ // While PTX also allows '%' at the start of identifiers, LLVM will throw a
78
+ // fatal error for '%' in symbol names in MCSymbol::print. Exclude for now.
79
if (isAlnum(C) || C == '_' || C == '$') {
80
ValidNameStream << C;
81
} else {
0 commit comments