Remove many superfluous SmallString::str() calls.
[oota-llvm.git] / utils / TableGen / FixedLenDecoderEmitter.cpp
index 292a2b17c5b5d9a8be8b78c9735ed3bacc6d3462..c69b89b9bc0fb6bf0651b1314beb071ab95f236d 100644 (file)
@@ -1091,7 +1091,7 @@ unsigned FilterChooser::getDecoderIndex(DecoderSet &Decoders,
   // overkill for now, though.
 
   // Make sure the predicate is in the table.
-  Decoders.insert(Decoder.str());
+  Decoders.insert(StringRef(Decoder));
   // Now figure out the index for when we write out the table.
   DecoderSet::const_iterator P = std::find(Decoders.begin(),
                                            Decoders.end(),