[opengtl-commits] [412] possible workaround for gcc 3.3 (bis) |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/opengtl-commits Archives
]
Revision: 412
Author: cyrille
Date: 2008-09-21 16:05:17 +0200 (Sun, 21 Sep 2008)
Log Message:
-----------
possible workaround for gcc 3.3 (bis)
Modified Paths:
--------------
trunk/OpenGTL/OpenGTL/GTLCore/Function_p.cpp
Modified: trunk/OpenGTL/OpenGTL/GTLCore/Function_p.cpp
===================================================================
--- trunk/OpenGTL/OpenGTL/GTLCore/Function_p.cpp 2008-09-21 13:58:48 UTC (rev 411)
+++ trunk/OpenGTL/OpenGTL/GTLCore/Function_p.cpp 2008-09-21 14:05:17 UTC (rev 412)
@@ -98,7 +98,7 @@
llvmArguments.push_back( Type::Private::d( arguments[i].type() )->asArgumentType() );
}
std::vector<llvm::Function*> functions(arguments.size() + 1);
- functions[arguments.size() ] = dynamic_cast<llvm::Function*>( _module->getOrInsertFunction( _symbolName, llvm::FunctionType::get(retType->d->type(), llvmArguments, false ) ) );
+ functions[arguments.size() ] = dynamic_cast<llvm::Function*>( _module->getOrInsertFunction( _symbolName, llvm::FunctionType::get( Type::Private::d( retType )->type(), llvmArguments, false ) ) );
GTLCore::Function::Data* data = new GTLCore::Function::Data(arguments, arguments.size() );
data->setFunctions( functions );
data->setModule( _module );