[all-commits] [llvm/llvm-project] ce0817: [FlattenCFG] avoid crash on malformed code

Sanjay Patel via All-commits all-commits at lists.llvm.org
Tue Aug 16 12:11:13 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ce081776b298b0c85fa24f3bc149106f24b096a4
      https://github.com/llvm/llvm-project/commit/ce081776b298b0c85fa24f3bc149106f24b096a4
  Author: Sanjay Patel <spatel at rotateright.com>
  Date:   2022-08-16 (Tue, 16 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/FlattenCFG.cpp
    M llvm/test/Transforms/Util/flattencfg.ll

  Log Message:
  -----------
  [FlattenCFG] avoid crash on malformed code

We don't have a dominator tree in this pass, so we
can't bail out sooner by checking for unreachable
code, but this is a minimal fix for the example in
issue #56875.




More information about the All-commits mailing list