[all-commits] [llvm/llvm-project] 19d2c6: [CodeGen] Don't crash on for loops with cond varia...

Benjamin Kramer via All-commits all-commits at lists.llvm.org
Fri Mar 19 12:48:18 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 19d2c65ddd757997785163709800f837857f686d
      https://github.com/llvm/llvm-project/commit/19d2c65ddd757997785163709800f837857f686d
  Author: Benjamin Kramer <benny.kra at googlemail.com>
  Date:   2021-03-19 (Fri, 19 Mar 2021)

  Changed paths:
    M clang/lib/CodeGen/CGStmt.cpp
    M clang/test/CodeGenCXX/for-cond-var.cpp

  Log Message:
  -----------
  [CodeGen] Don't crash on for loops with cond variables and no increment

This looks like an oversight from a875721d8a2d, creating IR that refers
to `for.inc` even if it doesn't exist.

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




More information about the All-commits mailing list