From: Andrew Trick Date: Mon, 17 Sep 2012 23:14:15 +0000 (+0000) Subject: Backout the wrong subtarget emitter fix X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e4095f95ac2480aabbe289f41723b53ac1c82a98;p=oota-llvm.git Backout the wrong subtarget emitter fix git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164078 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index 83b1cb1ee98..aec621fefc7 100644 --- a/utils/TableGen/SubtargetEmitter.cpp +++ b/utils/TableGen/SubtargetEmitter.cpp @@ -971,7 +971,7 @@ void SubtargetEmitter::EmitSchedClassTables(SchedClassTables &SchedTables, // The first class is always invalid. We no way to distinguish it except by // name and position. - assert(SchedClass.Name == "NoItinerary" + assert(SchedModels.getSchedClass(0).Name == "NoItinerary" && "invalid class not first"); OS << " {DBGFIELD(\"InvalidSchedClass\") " << MCSchedClassDesc::InvalidNumMicroOps