This is an archive of the discontinued LLVM Phabricator instance.

Fix codegen for structured binding binding in conditions
ClosedPublic

Authored by Rakete1111 on Mar 15 2018, 12:54 PM.

Details

Summary

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.

Thanks Nicolas Lesser for contributing the patch.

Diff Detail

Repository
rC Clang

Event Timeline

Rakete1111 created this revision.Mar 15 2018, 12:54 PM
lichray accepted this revision.Mar 17 2018, 2:02 PM
This revision is now accepted and ready to land.Mar 17 2018, 2:02 PM
lichray edited the summary of this revision. (Show Details)Mar 17 2018, 2:03 PM
This revision was automatically updated to reflect the committed changes.