[PATCH] D124098: Don't replace Undef with null value for Constants

ykhatav via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 20 08:59:58 PDT 2022


ykhatav created this revision.
ykhatav added reviewers: bwyma, smerritt, StephenTozer.
Herald added subscribers: dexonsmith, hiraditya.
Herald added a project: All.
ykhatav requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The following patch - (https://reviews.llvm.org/D117300)  introduced null's into the debug information and those nulls are expected to be undef values. The RAUW debug info handlers are for instructions, not constants and the debug information expects the value to be undef and not null. This patch tries to fix this behavior by not replacing undef with null value in Constants for debug info metadata.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124098

Files:
  llvm/include/llvm/IR/Metadata.h
  llvm/lib/IR/Constants.cpp
  llvm/lib/IR/Metadata.cpp
  llvm/test/DebugInfo/X86/undef-type-md.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124098.423918.patch
Type: text/x-patch
Size: 4280 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220420/b129812e/attachment.bin>


More information about the llvm-commits mailing list