diff options
| author | Tim Foley <tfoley@nvidia.com> | 2017-06-16 09:09:09 -0700 |
|---|---|---|
| committer | Tim Foley <tfoley@nvidia.com> | 2017-06-16 09:09:09 -0700 |
| commit | 9ba8ce30f8314a79169e6d9cfa12e5db7239693f (patch) | |
| tree | 587db9fd5b9920f39104ea6467de59d265188370 /source/slang/preprocessor.cpp | |
| parent | 0bf3d6d4db7409fcd288ff69e75e8e8b4f082969 (diff) | |
Bug fix: handle unchecked operator application in emit logic
When in rewriter mode, the emit logic will never see function applications inside function bodies, but it *will* see function application expressions at global scope, and some of these expressions might be unchecked.
The challenge here is that even simple math operations now show up as function calls, so we need a bit of special-case logic to detect unchecked calls and then emit them using the syntax they were written with (e.g., use infix syntax if they were written as an infix expression).
Diffstat (limited to 'source/slang/preprocessor.cpp')
0 files changed, 0 insertions, 0 deletions
