mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-03-06 09:28:50 +00:00
[clang][Interp][NFC] Add an assertion
This commit is contained in:
parent
d913aa6971
commit
e9eb8362f0
@ -15,6 +15,7 @@ namespace interp {
|
||||
|
||||
template <typename T>
|
||||
static T getParam(const InterpFrame *Frame, unsigned Index) {
|
||||
assert(Frame->getFunction()->getNumParams() > Index);
|
||||
unsigned Offset = Frame->getFunction()->getParamOffset(Index);
|
||||
return Frame->getParam<T>(Offset);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user