[llvm-commits] [llvm] r166634 - /llvm/trunk/lib/Transforms/Utils/Local.cpp
Micah Villmow
villmow at gmail.com
Wed Oct 24 15:32:26 PDT 2012
Author: mvillmow
Date: Wed Oct 24 17:32:26 2012
New Revision: 166634
URL: http://llvm.org/viewvc/llvm-project?rev=166634&view=rev
Log:
Fix a compiler warning with an unused variable.
Modified:
llvm/trunk/lib/Transforms/Utils/Local.cpp
Modified: llvm/trunk/lib/Transforms/Utils/Local.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/Local.cpp?rev=166634&r1=166633&r2=166634&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/Local.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/Local.cpp Wed Oct 24 17:32:26 2012
@@ -806,7 +806,6 @@
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);
More information about the llvm-commits
mailing list