Index: src/IceConverter.cpp |
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp |
index e06e290238d76932e06bda54b387352fbe0052e1..a8148f97ad1f7bd3333b07435ac4e5cd2e64c463 100644 |
--- a/src/IceConverter.cpp |
+++ b/src/IceConverter.cpp |
@@ -156,7 +156,9 @@ private: |
Ice::CfgNode *mapBasicBlockToNode(const BasicBlock *BB) { |
if (NodeMap.find(BB) == NodeMap.end()) { |
- NodeMap[BB] = Func->makeNode(BB->getName()); |
+ NodeMap[BB] = Func->makeNode(); |
+ if (ALLOW_DUMP) |
+ NodeMap[BB]->setName(BB->getName()); |
} |
return NodeMap[BB]; |
} |