mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 02:00:03 +08:00
Show error message if two atoms are not mergeable.
llvm-svn: 194620
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user