summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-reflection-api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-reflection-api.cpp')
-rw-r--r--source/slang/slang-reflection-api.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-reflection-api.cpp b/source/slang/slang-reflection-api.cpp
index 5dfa9d55a..065c2c3f6 100644
--- a/source/slang/slang-reflection-api.cpp
+++ b/source/slang/slang-reflection-api.cpp
@@ -378,8 +378,8 @@ SLANG_API const char* spReflectionUserAttribute_GetArgumentValueString(
if (auto cexpr = as<StringLiteralExpr>(userAttr->args[index]))
{
if (bufLen)
- *bufLen = cexpr->token.getContentLength();
- return cexpr->token.getContent().begin();
+ *bufLen = cexpr->value.getLength();
+ return cexpr->value.getBuffer();
}
return nullptr;
}