OSDN Git Service

[InstCombine] Update stale comment. NFC
authorCraig Topper <craig.topper@intel.com>
Tue, 7 Nov 2017 17:37:32 +0000 (17:37 +0000)
committerCraig Topper <craig.topper@intel.com>
Tue, 7 Nov 2017 17:37:32 +0000 (17:37 +0000)
Datalayout is no longer optional so the comment didn't match what the code currently does.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317594 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineCompares.cpp

index cb47885..2974449 100644 (file)
@@ -426,8 +426,7 @@ Instruction *InstCombiner::foldCmpLoadFromIndexedGlobal(GetElementPtrInst *GEP,
 
     // Look for an appropriate type:
     // - The type of Idx if the magic fits
-    // - The smallest fitting legal type if we have a DataLayout
-    // - Default to i32
+    // - The smallest fitting legal type
     if (ArrayElementCount <= Idx->getType()->getIntegerBitWidth())
       Ty = Idx->getType();
     else