]> granicus.if.org Git - llvm/commitdiff
[DemandedBits] simplify call; NFC
authorSanjay Patel <spatel@rotateright.com>
Wed, 16 Aug 2017 14:28:23 +0000 (14:28 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 16 Aug 2017 14:28:23 +0000 (14:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311009 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DemandedBits.cpp

index 7e6d6b01a35a9488657578dc0d2001c7e4af4edd..7276f2524fed00eb0abf10715d0b6260b7deac52 100644 (file)
@@ -368,7 +368,7 @@ void DemandedBits::performAnalysis() {
 APInt DemandedBits::getDemandedBits(Instruction *I) {
   performAnalysis();
   
-  const DataLayout &DL = I->getParent()->getModule()->getDataLayout();
+  const DataLayout &DL = I->getModule()->getDataLayout();
   auto Found = AliveBits.find(I);
   if (Found != AliveBits.end())
     return Found->second;