[all-commits] [llvm/llvm-project] cb6a62: Add `AddNull` argument to `CreateGlobalString`. (#...

Thomas Symalla via All-commits all-commits at lists.llvm.org
Wed May 22 08:24:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb6a62369a353f506a1dde087eeaf5ebea5d5c26
      https://github.com/llvm/llvm-project/commit/cb6a62369a353f506a1dde087eeaf5ebea5d5c26
  Author: Thomas Symalla <5754458+tsymalla at users.noreply.github.com>
  Date:   2024-05-22 (Wed, 22 May 2024)

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

  Log Message:
  -----------
  Add `AddNull` argument to `CreateGlobalString`. (#93036)

There's currently no way to control whether a null terminator should be
appended to the string created in `CreateGlobalString` /
`CreateGlobalStringPtr`, since the methods don't expose an additional
argument.
This change adds an additional argument to the methods that has the same
default value, `true`, as in `ConstantDataArray::getString`, and passes
it down to this internal method.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list