Fix an obvious typo that causes an assertion failure when running
test/Transforms/GVN/rle.ll if the (currently disabled) check for a pointer type in getIntPtrType is turned on. llvm-svn: 167285
This commit is contained in:
parent
dcebf1e9da
commit
a17bb1419f
|
@ -780,7 +780,7 @@ static Value *CoerceAvailableValueToLoadType(Value *StoredVal,
|
|||
|
||||
Type *TypeToCastTo = LoadedTy;
|
||||
if (TypeToCastTo->getScalarType()->isPointerTy())
|
||||
TypeToCastTo = TD.getIntPtrType(StoredValTy);
|
||||
TypeToCastTo = TD.getIntPtrType(TypeToCastTo);
|
||||
|
||||
if (StoredValTy != TypeToCastTo)
|
||||
StoredVal = new BitCastInst(StoredVal, TypeToCastTo, "", InsertPt);
|
||||
|
|
Loading…
Reference in New Issue