diff options
| author | Yong He <yonghe@outlook.com> | 2024-04-24 15:51:43 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-04-24 15:51:43 -0700 |
| commit | fc4c242442510fb97c3cfbf04d7582ebbc3bb0ed (patch) | |
| tree | 0c19f6974dad99cbe1faa24b1aba41d0780008da /source/slang/slang-ir-glsl-legalize.cpp | |
| parent | 211b2ffc20d7798cab0b8483ccc3ec2b7ade49ab (diff) | |
Fix macos CI and clang warnings. (#4019)
* Fix macos CI.
* Fix.
* Fix.
* Fix.
* Fix clang warnings.
* Fix more warnings.
Diffstat (limited to 'source/slang/slang-ir-glsl-legalize.cpp')
| -rw-r--r-- | source/slang/slang-ir-glsl-legalize.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/slang/slang-ir-glsl-legalize.cpp b/source/slang/slang-ir-glsl-legalize.cpp index b741e7ffa..54af7a746 100644 --- a/source/slang/slang-ir-glsl-legalize.cpp +++ b/source/slang/slang-ir-glsl-legalize.cpp @@ -2795,7 +2795,7 @@ void getAllNullLocationRayObjectsAndUsedLocations( for (auto inst : module->getGlobalInsts()) { auto instOp = inst->getOp(); - IRIntegerValue intLitVal = NULL; + IRIntegerValue intLitVal = 0; if (instOp != kIROp_GlobalParam && instOp != kIROp_GlobalVar) continue; for (auto decor : inst->getDecorations()) { @@ -2839,7 +2839,7 @@ void assignRayPayloadHitObjectAttributeLocations(IRModule* module) for (auto inst : nullRayObjects) { IRInst* location = nullptr; - IRIntegerValue intLitVal = NULL; + IRIntegerValue intLitVal = 0; for (auto decor : inst->getDecorations()) { switch (decor->getOp()) |
