forked from OSchip/llvm-project
[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
7b760095cb
commit
386fc2516c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue