fix % repeat in IR print

This commit is contained in:
rain2133
2025-06-23 00:22:15 +08:00
parent 496e2abfb6
commit 9d8930f5df
5 changed files with 13 additions and 13 deletions

View File

@@ -96,7 +96,7 @@ class IRBuilder {
std::string newName;
if (name.empty()) {
std::stringstream ss;
ss << "%" << tmpIndex;
ss << tmpIndex;
newName = ss.str();
tmpIndex++;
} else {
@@ -136,7 +136,7 @@ class IRBuilder {
std::string newName;
if (name.empty()) {
std::stringstream ss;
ss << "%" << tmpIndex;
ss << tmpIndex;
newName = ss.str();
tmpIndex++;
} else {
@@ -221,7 +221,7 @@ class IRBuilder {
std::string newName;
if (name.empty() && callee->getReturnType() != Type::getVoidType()) {
std::stringstream ss;
ss << "%" << tmpIndex;
ss << tmpIndex;
newName = ss.str();
tmpIndex++;
} else {
@@ -268,7 +268,7 @@ class IRBuilder {
std::string newName;
if (name.empty()) {
std::stringstream ss;
ss << "%" << tmpIndex;
ss << tmpIndex;
newName = ss.str();
tmpIndex++;
} else {
@@ -284,7 +284,7 @@ class IRBuilder {
std::string newName;
if (name.empty()) {
std::stringstream ss;
ss << "%" << tmpIndex;
ss << tmpIndex;
newName = ss.str();
tmpIndex++;
} else {

0
src/include/Mem2Reg.h Normal file
View File