summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorMicah Villmow <villmow@gmail.com>2012-10-24 22:32:26 +0000
committerMicah Villmow <villmow@gmail.com>2012-10-24 22:32:26 +0000
commitf07b962801f1cacd1da3da1d7f01e4c468e90d47 (patch)
tree1881a86f09b3363e0707afef0a9987b591f391d2 /llvm/lib/Transforms/Utils/Local.cpp
parent602d09d0aa87e7a26e2b14c0468e64f3a410da6f (diff)
downloadbcm5719-llvm-f07b962801f1cacd1da3da1d7f01e4c468e90d47.tar.gz
bcm5719-llvm-f07b962801f1cacd1da3da1d7f01e4c468e90d47.zip
Fix a compiler warning with an unused variable.
llvm-svn: 166634
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index b03c878ef33..c09d982d655 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud