tint: Fix use-after-free

Bug: chromium:1324533
Bug: chromium:1326749
Bug: oss-fuzz:47516
Change-Id: I0fd2db8997beaeaedc867bd27ee8866ace4e7cf0
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/90820
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Reviewed-by: Ben Clayton <bclayton@google.com>
This commit is contained in:
Antonio Maiorano 2022-05-18 19:55:18 +00:00 committed by Dawn LUCI CQ
parent c670018aea
commit 2e681052b3
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ bool TraverseExpressions(const ast::Expression* root, diag::List& diags, CALLBAC
};
while (!to_visit.empty()) {
auto& p = to_visit.back();
auto p = to_visit.back();
to_visit.pop_back();
const ast::Expression* expr = p.expr;