Index: src/IceConverter.cpp |
diff --git a/src/IceConverter.cpp b/src/IceConverter.cpp |
index 2e6021b82dcab0b2f23f5cee229b747ddd4367f6..cdfdc43580eb686134eba45e9e349794c15dd99d 100644 |
--- a/src/IceConverter.cpp |
+++ b/src/IceConverter.cpp |
@@ -83,7 +83,7 @@ public: |
Ice::Cfg *convertFunction(const Function *F) { |
VarMap.clear(); |
NodeMap.clear(); |
- Func = new Ice::Cfg(Ctx); |
+ Func = Ice::Cfg::create(Ctx); |
Func->setFunctionName(F->getName()); |
Func->setReturnType(convertToIceType(F->getReturnType())); |
Func->setInternal(F->hasInternalLinkage()); |