land David Blaikie's patch to de-constify Type, with a few tweaks.
[oota-llvm.git] / lib / Analysis / MemoryDependenceAnalysis.cpp
index bba4482f4da57b12e39e1e76d2f2b77863cefba4..34ba92509e57c8e1b4591670e3f28a918f38bacd 100644 (file)
@@ -382,7 +382,7 @@ getPointerDependencyFrom(const AliasAnalysis::Location &MemLoc, bool isLoad,
           // location is 1 byte at P+1).  If so, return it as a load/load
           // clobber result, allowing the client to decide to widen the load if
           // it wants to.
-          if (const IntegerType *ITy = dyn_cast<IntegerType>(LI->getType()))
+          if (IntegerType *ITy = dyn_cast<IntegerType>(LI->getType()))
             if (LI->getAlignment()*8 > ITy->getPrimitiveSizeInBits() &&
                 isLoadLoadClobberIfExtendedToFullWidth(MemLoc, MemLocBase,
                                                        MemLocOffset, LI, TD))