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 c201a9e commit 358e43aCopy full SHA for 358e43a
llvm/utils/TableGen/CallingConvEmitter.cpp
@@ -139,8 +139,7 @@ std::string CallingConvEmitter::getQualifiedRegisterName(const Init *I) {
139
if (const auto *DI = dyn_cast<DefInit>(I))
140
return getQualifiedName(DI->getDef());
141
142
- const auto *SI = dyn_cast<StringInit>(I);
143
- assert(SI && "unexpected Init kind");
+ const auto *SI = cast<StringInit>(I);
144
if (const CodeGenRegister *CGR = RegistersByDefName.lookup(SI->getValue()))
145
return getQualifiedName(CGR->TheDef);
146
0 commit comments