File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1111// ===----------------------------------------------------------------------===//
1212
1313#include " llvm/Frontend/HLSL/HLSLRootSignature.h"
14+ #include " llvm/ADT/SmallString.h"
1415#include " llvm/ADT/bit.h"
1516#include " llvm/IR/IRBuilder.h"
1617#include " llvm/IR/Metadata.h"
@@ -217,8 +218,8 @@ MDNode *MetadataBuilder::BuildRootConstants(const RootConstants &Constants) {
217218
218219MDNode *MetadataBuilder::BuildRootDescriptor (const RootDescriptor &Descriptor) {
219220 IRBuilder<> Builder (Ctx);
220- std::string Name;
221- llvm::raw_string_ostream OS (Name);
221+ llvm::SmallString< 7 > Name;
222+ llvm::raw_svector_ostream OS (Name);
222223 OS << " Root" << ClauseType (llvm::to_underlying (Descriptor.Type ));
223224
224225 Metadata *Operands[] = {
You can’t perform that action at this time.
0 commit comments