Commit 754b1c0f authored by Roberto Raggi's avatar Roberto Raggi
Browse files

Set the cv-qualifiers when instantiating template functions.

parent 743e00f1
...@@ -143,6 +143,8 @@ protected: ...@@ -143,6 +143,8 @@ protected:
Function *fun = _control->newFunction(0, name); Function *fun = _control->newFunction(0, name);
fun->setScope(ty->scope()); fun->setScope(ty->scope());
fun->setConst(ty->isConst());
fun->setVolatile(ty->isVolatile());
fun->setReturnType(returnType); fun->setReturnType(returnType);
for (unsigned i = 0; i < ty->argumentCount(); ++i) { for (unsigned i = 0; i < ty->argumentCount(); ++i) {
Symbol *arg = ty->argumentAt(i); Symbol *arg = ty->argumentAt(i);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment