diff --git a/src/codegen/compiler.cpp b/src/codegen/compiler.cpp index 2aa9e05990..fc79d4b6b5 100644 --- a/src/codegen/compiler.cpp +++ b/src/codegen/compiler.cpp @@ -2536,6 +2536,7 @@ class MyCompiler: public Compiler { virtual void storeLocal(unsigned footprint, ir::Value* src, unsigned index) { + assert(&c, typeFootprint(src->type) == footprint); compiler::storeLocal(&c, footprint, static_cast(src), index, true); }