diff --git a/utils/TableGen/InstrEnumEmitter.cpp b/utils/TableGen/InstrEnumEmitter.cpp index f382d34f348..d1e7f3dd35d 100644 --- a/utils/TableGen/InstrEnumEmitter.cpp +++ b/utils/TableGen/InstrEnumEmitter.cpp @@ -29,7 +29,7 @@ void InstrEnumEmitter::run(raw_ostream &OS) { std::string Namespace; for (CodeGenTarget::inst_iterator II = Target.inst_begin(), E = Target.inst_end(); II != E; ++II) { - if (II->second.Namespace != "TargetInstrInfo") { + if (II->second.Namespace != "TargetOpcode") { Namespace = II->second.Namespace; break; }