Skip to content

Commit 358e43a

Browse files
committed
Address comments.
1 parent c201a9e commit 358e43a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/utils/TableGen/CallingConvEmitter.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,7 @@ std::string CallingConvEmitter::getQualifiedRegisterName(const Init *I) {
139139
if (const auto *DI = dyn_cast<DefInit>(I))
140140
return getQualifiedName(DI->getDef());
141141

142-
const auto *SI = dyn_cast<StringInit>(I);
143-
assert(SI && "unexpected Init kind");
142+
const auto *SI = cast<StringInit>(I);
144143
if (const CodeGenRegister *CGR = RegistersByDefName.lookup(SI->getValue()))
145144
return getQualifiedName(CGR->TheDef);
146145

0 commit comments

Comments
 (0)