[all-commits] [llvm/llvm-project] 096097: [IR] Rename a couple calls to ConstantInt::getNull...

Craig Topper via All-commits all-commits at lists.llvm.org
Tue Apr 4 10:24:59 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09609715d7ebb64496ffbd3059e05a908f22cc3f
  Author: Craig Topper <craig.topper at sifive.com>
  Date:   2023-04-04 (Tue, 04 Apr 2023)

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

  Log Message:
  [IR] Rename a couple calls to ConstantInt::getNullValue to Constant::getNullValue. NFC

There is no getNullValue in ConstantInt. Due to inheritance, it's
really Constant::getNullValue.

Most of the calls in tree that use ConstantInt::getNullValue do
know the type is an integer. These two calls allow pointers so
shouldn't use "ConstantInt".

More information about the All-commits mailing list