[all-commits] [llvm/llvm-project] 5b342e: [RemoveDIs][DebugInfo] Check for null marker when ...
Stephen Tozer via All-commits
all-commits at lists.llvm.org
Mon Feb 19 03:38:17 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 5b342e6041f8567a39354ae3c5346cf74b3bb84f
https://github.com/llvm/llvm-project/commit/5b342e6041f8567a39354ae3c5346cf74b3bb84f
Author: Stephen Tozer <stephen.tozer at sony.com>
Date: 2024-02-19 (Mon, 19 Feb 2024)
Changed paths:
M llvm/lib/IR/AsmWriter.cpp
A llvm/test/DebugInfo/dpvalue-print-nocrash.ll
Log Message:
-----------
[RemoveDIs][DebugInfo] Check for null marker when printing DPValues (#82238)
The function to print DPValues currently tries to incorporate the
function it is part of, which is found through its marker; this means
when we try to print a DPValue with no marker, we dereference a nullptr.
We can print instructions without parents, and so the same should be
true for DPValues; this patch changes DPValue::print to check for a null
marker and avoid dereferencing it.
Fixes issue: https://github.com/llvm/llvm-project/issues/82230
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