Index: src/PNaClTranslator.cpp |
diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp |
index 06445823fc0d7696b144acbef44f269435cb9f4b..ac4c6976477ec5e1dbb8a1d6a380924a06db2227 100644 |
--- a/src/PNaClTranslator.cpp |
+++ b/src/PNaClTranslator.cpp |
@@ -1066,7 +1066,7 @@ public: |
Timer(Ice::TimerStack::TT_parseFunctions, getTranslator().getContext()), |
Func(isIRGenerationDisabled() |
? nullptr |
- : new Ice::Cfg(getTranslator().getContext())), |
+ : Ice::Cfg::create(getTranslator().getContext())), |
CurrentBbIndex(0), FcnId(Context->getNextFunctionBlockValueID()), |
FuncDecl(Context->getFunctionByID(FcnId)), |
CachedNumGlobalValueIDs(Context->getNumGlobalIDs()), |