mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 19:42:54 +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:
parent
3951d35503
commit
566d3ce30e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user