[all-commits] [llvm/llvm-project] 1ebbf8: [NFC][IR] PHINode: assert we aren't trying to crea...

Roman Lebedev via All-commits all-commits at lists.llvm.org
Tue Apr 27 10:50:13 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ebbf84ba45b1af8b6469f79a6c6798d185bc1d2
      https://github.com/llvm/llvm-project/commit/1ebbf84ba45b1af8b6469f79a6c6798d185bc1d2
  Author: Roman Lebedev <lebedev.ri at gmail.com>
  Date:   2021-04-27 (Tue, 27 Apr 2021)

  Changed paths:
    M llvm/include/llvm/IR/Instructions.h

  Log Message:
  -----------
  [NFC][IR] PHINode: assert we aren't trying to create token-typed PHI

Verifier will complain, but by then it may be too late,
because we might have never reached it because
we already crashed with some bogus bug.
It is best to catch this the moment it happens.




More information about the All-commits mailing list