[PATCH] D44534: Fix codegen for structured binding binding in conditions

2018-03-17 Thread Zhihao Yuan via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rC327780: Fix codegen for structured binding binding in conditions (authored by lichray, committed by ). Repository: rC Clang https://reviews.llvm.org/D44534 Files: lib/CodeGen/CGStmt.cpp test/Parse

[PATCH] D44534: Fix codegen for structured binding binding in conditions

2018-03-15 Thread Nicolas Lesser via Phabricator via cfe-commits
Rakete created this revision. Rakete added reviewers: lichray, rsmith. Rakete added a project: clang. The codegen for conditions assumes that a normal variable declaration is used in a condition, but this is not the case when a structured binding is used. This fixes PR36747