mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-21 03:29:40 +00:00
Silence C4715 'not all control paths return a value' warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231455 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8617b3bb3e
commit
02dc4fa6b2
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user