projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07bf39d
)
[StackLifetime] Fix sign compare warning (NFC)
author
Nikita Popov
<npopov@redhat.com>
Fri, 6 Jan 2023 15:10:47 +0000
(16:10 +0100)
committer
Nikita Popov
<npopov@redhat.com>
Fri, 6 Jan 2023 15:11:11 +0000
(16:11 +0100)
llvm/lib/Analysis/StackLifetime.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/StackLifetime.cpp
b/llvm/lib/Analysis/StackLifetime.cpp
index
9fc78fa
..
ee77e81
100644
(file)
--- a/
llvm/lib/Analysis/StackLifetime.cpp
+++ b/
llvm/lib/Analysis/StackLifetime.cpp
@@
-76,7
+76,7
@@
static const AllocaInst *findMatchingAlloca(const IntrinsicInst &II,
return nullptr;
int64_t LifetimeSize = Size->getSExtValue();
- if (LifetimeSize != -1 &&
LifetimeSize
!= *AllocaSize)
+ if (LifetimeSize != -1 &&
uint64_t(LifetimeSize)
!= *AllocaSize)
return nullptr;
return AI;