From cc4525c31cc1e192ed4491ff56c391a927faf66f Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Sat, 3 May 2014 21:52:30 -0600 Subject: [PATCH] add type/footprint assert in Compiler::storeLocal --- src/codegen/compiler.cpp | 1 + 1 file changed, 1 insertion(+) 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); }