1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

[InstCombine] Update stale comment. NFC

Datalayout is no longer optional so the comment didn't match what the code currently does.

llvm-svn: 317594
This commit is contained in:
Craig Topper 2017-11-07 17:37:32 +00:00
parent 3951d35503
commit 566d3ce30e

View File

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