Chromium Code Reviews| 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); |
|
JF
2014/12/18 06:36:53
The Cfg should probably be created (and deleted) w
Jim Stichnoth
2014/12/18 23:39:55
I think the threading will work the following way.
|
| Func->setFunctionName(F->getName()); |
| Func->setReturnType(convertToIceType(F->getReturnType())); |
| Func->setInternal(F->hasInternalLinkage()); |