HomePhabricator

[clang] Fix ternary operator in the second for loop statement

Authored by danlark on May 14 2021, 4:56 PM.

Description

[clang] Fix ternary operator in the second for loop statement

Fix ternary operator in for loop argument, it was by mistake not set as CanBeForRangeDecl and led to incorrect codegen. It fixes https://bugs.llvm.org/show_bug.cgi?id=50038. I don't have commit rights. Danila Kutenin. kutdanila@yandex.ru

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D102502

Details

Committed
rsmithMay 16 2021, 10:42 AM
Reviewer
rsmith
Differential Revision
D102502: [clang] Fix ternary operator in the second for loop statement
Parents
rGd1a7630369bc: [JITLink] Fix symbol comparator in LinkGraph::dump.
Branches
Unknown
Tags
Unknown