summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-check.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-check.cpp')
-rw-r--r--source/slang/slang-check.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/slang/slang-check.cpp b/source/slang/slang-check.cpp
index bd7e2ea12..77e3ffc9f 100644
--- a/source/slang/slang-check.cpp
+++ b/source/slang/slang-check.cpp
@@ -7,6 +7,8 @@
#include "slang-check-impl.h"
+#include "../core/slang-type-text-util.h"
+
namespace Slang
{
namespace { // anonymous
@@ -180,7 +182,7 @@ namespace Slang
SlangFuncPtr func = sharedLibrary->findFuncByName(info.name);
if (!func)
{
- UnownedStringSlice compilerName = DownstreamCompiler::getCompilerTypeAsText(SlangPassThrough(info.compilerType));
+ UnownedStringSlice compilerName = TypeTextUtil::asText(SlangPassThrough(info.compilerType));
sink->diagnose(SourceLoc(), Diagnostics::failedToFindFunctionForCompiler, info.name, compilerName);
return nullptr;
}