1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00

Silence C4715 'not all control paths return a value' warnings.

llvm-svn: 231455
This commit is contained in:
Yaron Keren 2015-03-06 07:49:14 +00:00
parent 82b6d2e64d
commit de3ef7d99d

View File

@ -206,6 +206,7 @@ bool BottomUpPtrState::MatchWithRetain() {
case S_Retain:
llvm_unreachable("bottom-up pointer in retain state!");
}
llvm_unreachable("Sequence unknown enum value");
}
bool BottomUpPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
@ -233,6 +234,7 @@ bool BottomUpPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
case S_Retain:
llvm_unreachable("bottom-up pointer in retain state!");
}
llvm_unreachable("Sequence unknown enum value");
}
void BottomUpPtrState::HandlePotentialUse(BasicBlock *BB, Instruction *Inst,
@ -336,6 +338,7 @@ bool TopDownPtrState::MatchWithRelease(ARCMDKindCache &Cache,
case S_MovableRelease:
llvm_unreachable("top-down pointer in bottom up state!");
}
llvm_unreachable("Sequence unknown enum value");
}
bool TopDownPtrState::HandlePotentialAlterRefCount(Instruction *Inst,