1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Keep coding stanard.

llvm-svn: 176661
This commit is contained in:
Jakub Staszak 2013-03-07 22:20:06 +00:00
parent d94b12a75b
commit 88061183a0

View File

@ -1097,13 +1097,12 @@ Type *AllocaPartitioning::getCommonType(iterator I) const {
continue;
Type *UserTy = 0;
if (LoadInst *LI = dyn_cast<LoadInst>(UI->U->getUser())) {
if (LoadInst *LI = dyn_cast<LoadInst>(UI->U->getUser()))
UserTy = LI->getType();
} else if (StoreInst *SI = dyn_cast<StoreInst>(UI->U->getUser())) {
else if (StoreInst *SI = dyn_cast<StoreInst>(UI->U->getUser()))
UserTy = SI->getValueOperand()->getType();
} else {
else
return 0; // Bail if we have weird uses.
}
if (IntegerType *ITy = dyn_cast<IntegerType>(UserTy)) {
// If the type is larger than the partition, skip it. We only encounter