diff options
| author | Yong He <yonghe@outlook.com> | 2020-09-21 08:27:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-21 08:27:10 -0700 |
| commit | 83514bd25160a9af91abc1b9acd7e44657447526 (patch) | |
| tree | cd364f0b519baa9c840002a8fa0a0ed84bebe59e /source/slang/slang-emit-c-like.cpp | |
| parent | 21339e802d77981bbc64cc21cc1315cc41932f35 (diff) | |
Enable all dynamic dispatch tests on CUDA. (#1552)
* Enable all dynamic dispatch tests on CUDA.
* Fix expected cross-compile test results.
Diffstat (limited to 'source/slang/slang-emit-c-like.cpp')
| -rw-r--r-- | source/slang/slang-emit-c-like.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/slang/slang-emit-c-like.cpp b/source/slang/slang-emit-c-like.cpp index f234b0be6..1a424306a 100644 --- a/source/slang/slang-emit-c-like.cpp +++ b/source/slang/slang-emit-c-like.cpp @@ -999,7 +999,8 @@ bool CLikeSourceEmitter::shouldFoldInstIntoUseSites(IRInst* inst) // if target langauge doesn't support pointers. if(as<IRPtrTypeBase>(type)) { - return !doesTargetSupportPtrTypes(); + if (!doesTargetSupportPtrTypes()) + return true; } // First we check for uniform parameter groups, |
