[clang][Interp][NFC] Add an assertion

This commit is contained in:
Timm Bäder 2023-07-15 15:16:50 +02:00
parent d913aa6971
commit e9eb8362f0

View File

@ -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);
}