Skip to content
Snippets Groups Projects
Commit 754b1c0f authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Set the cv-qualifiers when instantiating template functions.

parent 743e00f1
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment