Remove some instructions that seem to only exist to trick the filtering checks in...
[oota-llvm.git] / utils / TableGen / RegisterInfoEmitter.cpp
index ee417bc7370fdbd630881f3c215e076207db1f2a..cc08df9443a3f9de92595303f92ee1f5f99438e0 100644 (file)
@@ -121,7 +121,7 @@ void RegisterInfoEmitter::runEnums(raw_ostream &OS,
       OS << "}\n";
   }
 
-  const std::vector<Record*> RegAltNameIndices = Target.getRegAltNameIndices();
+  const std::vector<Record*> &RegAltNameIndices = Target.getRegAltNameIndices();
   // If the only definition is the default NoRegAltName, we don't need to
   // emit anything.
   if (RegAltNameIndices.size() > 1) {