Permalink
Browse files

naming fix

  • Loading branch information...
kripken committed Jul 20, 2012
1 parent 22a720a commit 69e318cad9936e9b1f3e77b4cf57c0cfe6ec45ef
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Target/CppBackend/CPPBackend.cpp
@@ -432,7 +432,7 @@ std::string CppWriter::getCppName(const Value* val) {
return I->second;
if (val->hasName())
- name = "_" + val->getName();
+ name = std::string("_") + val->getName().str();
else {
if (const GlobalVariable* GV = dyn_cast<GlobalVariable>(val)) {
name = std::string("gvar_") +

0 comments on commit 69e318c

Please sign in to comment.