summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir.cpp
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-10-02 18:45:44 -0700
committerGitHub <noreply@github.com>2024-10-02 18:45:44 -0700
commita11a776642ebcb69924ff79e3c5aebdf9f9e08ff (patch)
treeb4342f56a23bf8dcb0758dbebe640724ea855537 /source/slang/slang-ir.cpp
parent7ce7bb3364cf84f5a9247358dcec79ba5aef8572 (diff)
Fix the broken CI (#5216)
The type of `sizeof` has to be int not uint.
Diffstat (limited to 'source/slang/slang-ir.cpp')
-rw-r--r--source/slang/slang-ir.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir.cpp b/source/slang/slang-ir.cpp
index c12ad0f68..f0e7773c6 100644
--- a/source/slang/slang-ir.cpp
+++ b/source/slang/slang-ir.cpp
@@ -5982,7 +5982,7 @@ namespace Slang
auto inst = createInst<IRInst>(
this,
kIROp_SizeOf,
- getUIntType(),
+ getIntType(),
sizedType);
addInst(inst);
return inst;
@@ -5994,7 +5994,7 @@ namespace Slang
auto inst = createInst<IRInst>(
this,
kIROp_AlignOf,
- getUIntType(),
+ getIntType(),
sizedType);
addInst(inst);
return inst;