Downgrade a tablegen warning to an error.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 10 May 2011 17:52:59 +0000 (17:52 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 10 May 2011 17:52:59 +0000 (17:52 +0000)
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

index 053d926265443707ebb4ab40ff7288968931d69a..017a5856467e22daccf281ce9b3ee6d4592d6167 100644 (file)
@@ -293,14 +293,13 @@ void RegisterMaps::computeComposites() {
           if (i1d->second == Reg3) {
             std::pair<CompositeMap::iterator,bool> 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();
             }
           }
         }