[all-commits] [llvm/llvm-project] 46bf5d: Globalopt pass produces invalid debug info (#100654)
ykhatav via All-commits
all-commits at lists.llvm.org
Thu Aug 8 06:08:00 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 46bf5d547fa7f6066019750effaa6c2aa119a8da
https://github.com/llvm/llvm-project/commit/46bf5d547fa7f6066019750effaa6c2aa119a8da
Author: ykhatav <yashasvi.khatavkar at intel.com>
Date: 2024-08-08 (Thu, 08 Aug 2024)
Changed paths:
M llvm/lib/IR/Metadata.cpp
M llvm/lib/Transforms/IPO/GlobalOpt.cpp
A llvm/test/DebugInfo/X86/undef-dbg-val.ll
Log Message:
-----------
Globalopt pass produces invalid debug info (#100654)
This patch fixes an issue in the GlobalOpt pass where deleting a global
variable fails to update the corresponding dbg.value and it references
an empty metadata entry. The SalvageDebugInfo() function has been
updated to handle dbg.value intrinsic when globals are deleted.
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