2 Commits

Author SHA1 Message Date
Vaibhav Thakkar
df8d6d95ca [clang] Fix pretty-printing for variables declared in a for-loop condition
Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D153699
2023-06-24 19:27:10 -07:00
Danila Kutenin
d29f7f1a7b [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
2021-05-16 10:42:52 -07:00