Show error message if two atoms are not mergeable.

llvm-svn: 194620
This commit is contained in:
Rui Ueyama
2013-11-13 23:23:38 +00:00
parent f347e7533f
commit bcccb5db2e

View File

@@ -232,9 +232,13 @@ void SymbolTable::addByName(const Atom & newAtom) {
}
}
break;
case NCR_Error:
llvm::errs() << "SymbolTable: error while merging " << name << "\n";
// FALLTHRU
default:
llvm::report_fatal_error("SymbolTable::addByName(): unhandled switch clause");
}
if (useNew) {
// Update name table to use new atom.
_nameTable[name] = &newAtom;