[all-commits] [llvm/llvm-project] c5177f: Silence potential overflow warning (#83272)
Martin Wehking via All-commits
all-commits at lists.llvm.org
Mon Mar 18 07:38:49 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c5177f149b43dcc5a39c2c1aefaf1bba8518fd2e
https://github.com/llvm/llvm-project/commit/c5177f149b43dcc5a39c2c1aefaf1bba8518fd2e
Author: Martin Wehking <martin.wehking at codeplay.com>
Date: 2024-03-18 (Mon, 18 Mar 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
Log Message:
-----------
Silence potential overflow warning (#83272)
Cast Offset variable to int64_t type directly inside a multiplication
and function call to utilize 64-bit arithmetic.
Ensure that the multiplication will not overflow.
A static analyzer warned about this since the function expects a 64-bit
argument, but the multiplication is evaluated inside a 32-bit context.
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