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:
0d966ae
)
[NFC] Fix unused var in release build
author
Jordan Rupprecht
<rupprecht@google.com>
Tue, 1 Sep 2020 20:05:56 +0000
(13:05 -0700)
committer
Jordan Rupprecht
<rupprecht@google.com>
Tue, 1 Sep 2020 20:05:56 +0000
(13:05 -0700)
llvm/lib/Analysis/Loads.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/Loads.cpp
b/llvm/lib/Analysis/Loads.cpp
index
b81322b
..
d63f6b9
100644
(file)
--- a/
llvm/lib/Analysis/Loads.cpp
+++ b/
llvm/lib/Analysis/Loads.cpp
@@
-516,7
+516,7
@@
bool llvm::canReplacePointersIfEqual(Value *A, Value *B, const DataLayout &DL,
if (auto *C = dyn_cast<Constant>(B)) {
// Do not allow replacing a pointer with a constant pointer, unless it is
// either null or at least one byte is dereferenceable.
- APInt OneByte(DL.getPointerTypeSizeInBits(
A->getType()
), 1);
+ APInt OneByte(DL.getPointerTypeSizeInBits(
Ty
), 1);
return C->isNullValue() ||
isDereferenceableAndAlignedPointer(B, Align(1), OneByte, DL, CtxI);
}