Ben Clayton 9de93ca105 ProgramBuilder: Don't wrap call-exprs with a call-stmts
ast::CallExpression will soon encompase function & intrinsic calls,
along with type-constructors and type-casts. The latter two cannot be
wrapped with a CallStatement, so change
ProgramBuilder::WrapInStatement() to always assign the expression to a
temporary.

Fix the few places that actually relied on this behavior to use
CallStmt() explicitly.

Bug: tint:888
Change-Id: I48b8a2be73128df9cd2b4bdcc00ae81c4a872359
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/69104
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: James Price <jrprice@google.com>
2021-11-12 13:20:46 +00:00
..
2021-11-11 16:07:12 +00:00
2021-11-12 13:04:06 +00:00
2021-05-14 17:51:13 +00:00
2021-11-09 09:35:00 +00:00
2021-11-11 16:07:12 +00:00
2021-11-11 16:07:12 +00:00
2021-11-12 13:04:06 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-10-19 18:38:54 +00:00
2021-07-29 19:55:35 +00:00
2021-07-29 19:55:35 +00:00
2021-11-11 16:07:12 +00:00
2021-11-11 16:07:12 +00:00