diff options
Diffstat (limited to 'source/slang/slang-ir-string-hash.cpp')
| -rw-r--r-- | source/slang/slang-ir-string-hash.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/source/slang/slang-ir-string-hash.cpp b/source/slang/slang-ir-string-hash.cpp index 8bccb97db..b7e37d21e 100644 --- a/source/slang/slang-ir-string-hash.cpp +++ b/source/slang/slang-ir-string-hash.cpp @@ -41,7 +41,7 @@ void findGlobalHashedStringLiterals(IRModule* module, StringSlicePool& pool) } } -void addGlobalHashedStringLiterals(const StringSlicePool& pool, SharedIRBuilder& sharedBuilder) +void addGlobalHashedStringLiterals(const StringSlicePool& pool, IRModule* module) { auto slices = pool.getAdded(); if (slices.getCount() == 0) @@ -49,11 +49,8 @@ void addGlobalHashedStringLiterals(const StringSlicePool& pool, SharedIRBuilder& return; } - IRBuilder builder(sharedBuilder); + IRBuilder builder(module); - // - IRModule* module = builder.getModule(); - // We need to add a global instruction that references all of these string literals builder.setInsertInto(module->getModuleInst()); |
