From 4bfc6fba78a37ca246bd25753844788d4e562aaf Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Tue, 10 May 2011 17:52:59 +0000 Subject: Downgrade a tablegen warning to an error. Ambiguous sub-register index compositions are OK as long as the backend writer knows what he is doing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131134 91177308-0d34-0410-b5e6-96231b3b80d8 --- utils/TableGen/RegisterInfoEmitter.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'utils/TableGen') diff --git a/utils/TableGen/RegisterInfoEmitter.cpp b/utils/TableGen/RegisterInfoEmitter.cpp index 053d926265..017a585646 100644 --- a/utils/TableGen/RegisterInfoEmitter.cpp +++ b/utils/TableGen/RegisterInfoEmitter.cpp @@ -293,14 +293,13 @@ void RegisterMaps::computeComposites() { if (i1d->second == Reg3) { std::pair Ins = Composite.insert(std::make_pair(IdxPair, i1d->first)); - // Conflicting composition? + // Conflicting composition? Emit a warning but allow it. if (!Ins.second && Ins.first->second != i1d->first) { - errs() << "Error: SubRegIndex " << getQualifiedName(Idx1) + errs() << "Warning: SubRegIndex " << getQualifiedName(Idx1) << " and " << getQualifiedName(IdxPair.second) << " compose ambiguously as " << getQualifiedName(Ins.first->second) << " or " << getQualifiedName(i1d->first) << "\n"; - abort(); } } } -- cgit v1.2.3