diff --git a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp --- a/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp +++ b/mlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp @@ -27,6 +27,8 @@ #include "llvm/TableGen/Record.h" #include "llvm/TableGen/TableGenBackend.h" +#include + using llvm::ArrayRef; using llvm::formatv; using llvm::raw_ostream; @@ -1031,7 +1033,7 @@ // raw_string_ostream needs a string&, use a vector to store all the string // that are captured by reference within raw_string_ostream. StringMap extensionSets; - SmallVector extensionSetNames; + std::list extensionSetNames; initExtendedSetDeserializationDispatch(extensionSetName, instructionID, words, os);