diff --git a/support/tools/TableGen/InstrSelectorEmitter.cpp b/support/tools/TableGen/InstrSelectorEmitter.cpp index 2db6da4bd2f..8bc8f611dd2 100644 --- a/support/tools/TableGen/InstrSelectorEmitter.cpp +++ b/support/tools/TableGen/InstrSelectorEmitter.cpp @@ -401,6 +401,7 @@ std::string Pattern::getSlotName(Record *R) { } else { assert(0 && "Don't know how to get a slot name for this!"); } + return ""; } //===----------------------------------------------------------------------===// diff --git a/utils/TableGen/InstrSelectorEmitter.cpp b/utils/TableGen/InstrSelectorEmitter.cpp index 2db6da4bd2f..8bc8f611dd2 100644 --- a/utils/TableGen/InstrSelectorEmitter.cpp +++ b/utils/TableGen/InstrSelectorEmitter.cpp @@ -401,6 +401,7 @@ std::string Pattern::getSlotName(Record *R) { } else { assert(0 && "Don't know how to get a slot name for this!"); } + return ""; } //===----------------------------------------------------------------------===//