Fix debug build with Visual Studio
authorSimon Hausmann <simon.hausmann@digia.com>
Fri, 8 Feb 2013 08:54:15 +0000 (09:54 +0100)
committerLars Knoll <lars.knoll@digia.com>
Sat, 9 Feb 2013 09:51:23 +0000 (10:51 +0100)
For some reason it wants to reference the Void "value" that
should really get optimized away. That doesn't seem to be the case
in debug builds, so let's just define it.

Change-Id: Ifb25911d4764af87b5a7d3a04f618ebc5e428ff7
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
src/v4/qv4isel_masm.cpp

index 7c9ab87..24a51a9 100644 (file)
@@ -59,6 +59,8 @@ using namespace QQmlJS;
 using namespace QQmlJS::MASM;
 using namespace QQmlJS::VM;
 
+const Assembler::VoidType Assembler::Void;
+
 Assembler::Assembler(IR::Function* function)
     : _function(function)
 {