Commit c7da630
authored
Fix bool attribute argument handling (#6573)
Bool attribute argument values of true would be interpreted as -1 and
generate a warning that it expects a uint literal argument.
This change translates bool expression to either 0 or 1 when translating
to int, just as normal expression evaluation would.1 parent 5ffab31 commit c7da630
File tree
2 files changed
+23
-1
lines changed- tools/clang
- lib/Sema
- test/CodeGenDXIL/hlsl/objects/NodeObjects
2 files changed
+23
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12336 | 12336 | | |
12337 | 12337 | | |
12338 | 12338 | | |
12339 | | - | |
| 12339 | + | |
| 12340 | + | |
| 12341 | + | |
| 12342 | + | |
| 12343 | + | |
12340 | 12344 | | |
12341 | 12345 | | |
12342 | 12346 | | |
| |||
Lines changed: 18 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
0 commit comments