[opengtl-commits] [414] fix crash, do assign the value to something |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 414
Author: cyrille
Date: 2008-09-21 17:19:27 +0200 (Sun, 21 Sep 2008)
Log Message:
-----------
fix crash, do assign the value to something
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/AST/Tree.cpp
Modified: trunk/OpenGTL/OpenGTL/GTLCore/AST/Tree.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/AST/Tree.cpp 2008-09-21 14:45:44 UTC (rev 413)
+++ trunk/OpenGTL/OpenGTL/GTLCore/AST/Tree.cpp 2008-09-21 15:19:27 UTC (rev 414)
@@ -55,7 +55,7 @@
llvm::Constant* value = 0;
if( m_initialiser )
{
- _codeGenerator->convertConstantTo( m_initialiser->generateValue( gc, 0 ).constant(), m_initialiser->type() , m_type );
+ value = _codeGenerator->convertConstantTo( m_initialiser->generateValue( gc, 0 ).constant(), m_initialiser->type() , m_type );
}
llvm::Value* pointer = new llvm::GlobalVariable( value->getType(), true, llvm::GlobalValue::InternalLinkage, value, "", _module->llvmModule() );
m_variable->initialise( gc, 0, pointer);