Hi Renato, StringRef is wrapper under constant string and it's not acceptable: Name[0] = CoprocOp; It may be better to cut off prefix and parse only numbers in switch. -Andrey http://reviews.llvm.org/D4254