mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-23 01:24:30 +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:
@ -206,6 +206,7 @@ bool BottomUpPtrState::MatchWithRetain() {
|
|||||||
case S_Retain:
|
case S_Retain:
|
||||||
llvm_unreachable("bottom-up pointer in retain state!");
|
llvm_unreachable("bottom-up pointer in retain state!");
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Sequence unknown enum value");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool BottomUpPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
|
bool BottomUpPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
|
||||||
@ -233,6 +234,7 @@ bool BottomUpPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
|
|||||||
case S_Retain:
|
case S_Retain:
|
||||||
llvm_unreachable("bottom-up pointer in retain state!");
|
llvm_unreachable("bottom-up pointer in retain state!");
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Sequence unknown enum value");
|
||||||
}
|
}
|
||||||
|
|
||||||
void BottomUpPtrState::HandlePotentialUse(BasicBlock *BB, Instruction *Inst,
|
void BottomUpPtrState::HandlePotentialUse(BasicBlock *BB, Instruction *Inst,
|
||||||
@ -336,6 +338,7 @@ bool TopDownPtrState::MatchWithRelease(ARCMDKindCache &Cache,
|
|||||||
case S_MovableRelease:
|
case S_MovableRelease:
|
||||||
llvm_unreachable("top-down pointer in bottom up state!");
|
llvm_unreachable("top-down pointer in bottom up state!");
|
||||||
}
|
}
|
||||||
|
llvm_unreachable("Sequence unknown enum value");
|
||||||
}
|
}
|
||||||
|
|
||||||
bool TopDownPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
|
bool TopDownPtrState::HandlePotentialAlterRefCount(Instruction *Inst,
|
||||||
|
Reference in New Issue
Block a user