Set the cv-qualifiers when instantiating template functions.

This commit is contained in:
Roberto Raggi
2009-05-19 13:35:18 +02:00
parent 743e00f1ab
commit 754b1c0f0f

View File

@@ -143,6 +143,8 @@ protected:
Function *fun = _control->newFunction(0, name);
fun->setScope(ty->scope());
fun->setConst(ty->isConst());
fun->setVolatile(ty->isVolatile());
fun->setReturnType(returnType);
for (unsigned i = 0; i < ty->argumentCount(); ++i) {
Symbol *arg = ty->argumentAt(i);