projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f441a
)
Fix a compiler warning with an unused variable.
author
Micah Villmow
<villmow@gmail.com>
Wed, 24 Oct 2012 22:32:26 +0000
(22:32 +0000)
committer
Micah Villmow
<villmow@gmail.com>
Wed, 24 Oct 2012 22:32:26 +0000
(22:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166634
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/Local.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/Local.cpp
b/lib/Transforms/Utils/Local.cpp
index b03c878ef33d152e2979aefb23cc39c9676116f5..c09d982d65541c92388ac4fdad564fda014bbe49 100644
(file)
--- a/
lib/Transforms/Utils/Local.cpp
+++ b/
lib/Transforms/Utils/Local.cpp
@@
-806,7
+806,6
@@
unsigned llvm::getOrEnforceKnownAlignment(Value *V, unsigned PrefAlign,
const DataLayout *TD) {
assert(V->getType()->isPointerTy() &&
"getOrEnforceKnownAlignment expects a pointer!");
- unsigned AS = cast<PointerType>(V->getType())->getAddressSpace();
unsigned BitWidth = TD ? TD->getTypeSizeInBits(V->getType()) : 64;
APInt KnownZero(BitWidth, 0), KnownOne(BitWidth, 0);
ComputeMaskedBits(V, KnownZero, KnownOne, TD);