summaryrefslogtreecommitdiffstats
path: root/source/slang/slang-ir-constexpr.cpp
diff options
context:
space:
mode:
authorjsmall-nvidia <jsmall@nvidia.com>2023-08-01 15:39:28 -0400
committerGitHub <noreply@github.com>2023-08-01 15:39:28 -0400
commit1653731718e75c297730dfb878e9f23895d1051d (patch)
tree76f05056594f9910e5baf464b05a41e48398fe18 /source/slang/slang-ir-constexpr.cpp
parentedcc50cdcaf3743d4140b439375d0d40e3a941f7 (diff)
Fix literals needing cast (#3039)
* Cast integer literals. * Fix expected output. * For CUDA, search global instructions to see what types are used. Improve lookup for fp16 header in CUDA. * Fix issue with f16tof32 * Small improvement around finding used base types.
Diffstat (limited to 'source/slang/slang-ir-constexpr.cpp')
-rw-r--r--source/slang/slang-ir-constexpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/slang/slang-ir-constexpr.cpp b/source/slang/slang-ir-constexpr.cpp
index 1d6fd163c..dbfec9ae7 100644
--- a/source/slang/slang-ir-constexpr.cpp
+++ b/source/slang/slang-ir-constexpr.cpp
@@ -147,7 +147,7 @@ bool opCanBeConstExpr(IRInst* value)
// TODO: realistically need to special-case `call`
// operations here, so that we check whether the
// callee function is fixed/known, and if it is
- // whether it has been decoared as constant-foldable
+ // whether it has been declared as constant-foldable
return opCanBeConstExpr(value->getOp());
}