[all-commits] [llvm/llvm-project] 248468: Add non-null check before accessing pointer (#83459)
Martin Wehking via All-commits
all-commits at lists.llvm.org
Wed Mar 6 21:01:55 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 248468097faa9739ae66ff6fe1836e529d58455a
https://github.com/llvm/llvm-project/commit/248468097faa9739ae66ff6fe1836e529d58455a
Author: Martin Wehking <martin.wehking at codeplay.com>
Date: 2024-03-07 (Thu, 07 Mar 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
Log Message:
-----------
Add non-null check before accessing pointer (#83459)
Add a check if RC is not null to ensure that a consecutive access is
safe.
A static analyzer flagged this issue since hasVectorRegisters
potentially dereferences RC.
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