Fix const void * type propagation
This commit is contained in:
parent
0a41cb044c
commit
2a476d3372
|
@ -272,7 +272,7 @@ bool GlobalOptimizer::ReplaceGlobalConst(Expression* exp)
|
||||||
cexp->mDecValue->mType == DT_CONST_POINTER || cexp->mDecValue->mType == DT_CONST_FLOAT))
|
cexp->mDecValue->mType == DT_CONST_POINTER || cexp->mDecValue->mType == DT_CONST_FLOAT))
|
||||||
{
|
{
|
||||||
exp->mType = EX_CONSTANT;
|
exp->mType = EX_CONSTANT;
|
||||||
exp->mDecValue = cexp->mDecValue;
|
exp->mDecValue = cexp->mDecValue->ConstCast(exp->mDecType);
|
||||||
changed = true;
|
changed = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue