Issue |
125825
|
Summary |
llvm/lib/Target/X86/X86FrameLowering.cpp:2642: Suspicious assignment of int to long variable
|
Labels |
backend:X86,
code-quality,
backend:X86 Scheduler Models
|
Assignees |
|
Reporter |
dcb314
|
Static analyser cppcheck says:
llvm/lib/Target/X86/X86FrameLowering.cpp:2642:20: style: int result is assigned to long variable. If the variable is long to avoid loss of information, then you have loss of information. [truncLongCastAssignment]
Source code is
int64_t Offset = -1 * X86FI->getTCReturnAddrDelta();
Maybe better code:
int64_t Offset = -1L * X86FI->getTCReturnAddrDelta();
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs