Fix a typo in error message.

PiperOrigin-RevId: 251681475
This commit is contained in:
MLIR Team
2019-06-05 11:24:19 -07:00
committed by Mehdi Amini
parent 6f5f5a9178
commit bb475a27e2

View File

@@ -57,7 +57,8 @@ TranslateFromMLIRRegistration::TranslateFromMLIRRegistration(
translationFromMLIRRegistry.end())
llvm::report_fatal_error(
"Attempting to overwrite an existing <from> function");
assert(function && "Attempting to register an empty translate <to> function");
assert(function &&
"Attempting to register an empty translate <from> function");
translationFromMLIRRegistry[name] = function;
}