Revert "Multitaget function return types fixed"

This commit is contained in:
Dmitry Babokin
2015-04-22 17:38:05 +03:00
parent 8040154b2f
commit 0f1358b69f
3 changed files with 15 additions and 18 deletions

View File

@@ -756,7 +756,8 @@ Module::AddGlobalVariable(const std::string &name, const Type *type, Expr *initE
This functions returns true and issues an error if are any illegal
types are found and returns false otherwise.
*/
bool lRecursiveCheckValidParamType(const Type *t, bool vectorOk) {
static bool
lRecursiveCheckValidParamType(const Type *t, bool vectorOk) {
const StructType *st = CastType<StructType>(t);
if (st != NULL) {
for (int i = 0; i < st->GetElementCount(); ++i)