summaryrefslogtreecommitdiff
path: root/source/slang/slang-ir-lower-generics.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/slang/slang-ir-lower-generics.cpp')
-rw-r--r--source/slang/slang-ir-lower-generics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/slang/slang-ir-lower-generics.cpp b/source/slang/slang-ir-lower-generics.cpp
index be21a66ba..8677973f5 100644
--- a/source/slang/slang-ir-lower-generics.cpp
+++ b/source/slang/slang-ir-lower-generics.cpp
@@ -23,11 +23,11 @@
namespace Slang
{
// Replace all uses of RTTI objects with its sequential ID.
-// Currently we don't use RTTI objects at all, so all of them
-// are 0.
+// Currently we don't use RTTI objects other than check for null/invalid value,
+// so all of them are 0xFFFFFFFF.
void specializeRTTIObjectReferences(SharedGenericsLoweringContext* sharedContext)
{
- uint32_t id = 0;
+ uint32_t id = 0xFFFFFFFF;
for (auto rtti : sharedContext->mapTypeToRTTIObject)
{
IRBuilder builder(sharedContext->module);