Skip to content

Commit e2c5a18

Browse files
Final changes
1 parent ab98a56 commit e2c5a18

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/utils/TableGen/Basic/CodeGenIntrinsics.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -506,11 +506,10 @@ void CodeGenIntrinsic::addPrettyPrintFunction(unsigned ArgIdx,
506506
auto It = llvm::find_if(PrettyPrintFunctions, [ArgIdx](const auto &Info) {
507507
return Info.ArgIdx == ArgIdx;
508508
});
509-
if (It != PrettyPrintFunctions.end()) {
509+
if (It != PrettyPrintFunctions.end())
510510
PrintFatalError(TheDef->getLoc(), "ArgInfo for argument " + Twine(ArgIdx) +
511511
" is already defined as '" +
512512
It->FuncName + "'");
513-
return;
514-
}
513+
515514
PrettyPrintFunctions.emplace_back(ArgIdx, ArgName, FuncName);
516515
}

0 commit comments

Comments
 (0)