[all-commits] [llvm/llvm-project] d29f7f: [clang] Fix ternary operator in the second for loo...

Danila Kutenin via All-commits all-commits at lists.llvm.org
Sun May 16 10:43:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d29f7f1a7b47345289d63318e7b2a28cc56e169d
      https://github.com/llvm/llvm-project/commit/d29f7f1a7b47345289d63318e7b2a28cc56e169d
  Author: Danila Kutenin <kutdanila at yandex.ru>
  Date:   2021-05-16 (Sun, 16 May 2021)

  Changed paths:
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/lib/Parse/ParseTentative.cpp
    A clang/test/CodeGenCXX/for-loop-init-ternary-operator-statement.cpp
    A clang/test/PCH/for-loop-init-ternary-operator-statement.cpp
    M clang/test/Parser/cxx2a-init-statement.cpp

  Log Message:
  -----------
  [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 at yandex.ru

Reviewed By: rsmith

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




More information about the All-commits mailing list