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

Nicolas Lesser via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 15 12:54:38 PDT 2018


Rakete1111 created this revision.
Rakete1111 added reviewers: lichray, rsmith.
Rakete1111 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 <http://llvm.org/pr36747>.


Repository:
  rC Clang

https://reviews.llvm.org/D44534

Files:
  lib/CodeGen/CGStmt.cpp
  test/Parser/decomposed-condition.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44534.138607.patch
Type: text/x-patch
Size: 4966 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180315/435a2b0a/attachment.bin>


More information about the cfe-commits mailing list