[all-commits] [llvm/llvm-project] 693251: [CodeGen] Avoid CreateGEP with nullptr type (NFC)

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jul 8 11:39:15 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 693251fb2f001ac06591ae7d1254be265d36c9c7
      https://github.com/llvm/llvm-project/commit/693251fb2f001ac06591ae7d1254be265d36c9c7
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-07-08 (Thu, 08 Jul 2021)

  Changed paths:
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGObjCGNU.cpp
    M clang/lib/CodeGen/CodeGenFunction.cpp
    M clang/lib/CodeGen/ItaniumCXXABI.cpp

  Log Message:
  -----------
  [CodeGen] Avoid CreateGEP with nullptr type (NFC)

In preparation for dropping support for it. I've replaced it with
a proper type where the correct type was obvious and left an
explicit getPointerElementType() where it wasn't.




More information about the All-commits mailing list