Chromium Code Reviews| Index: src/IceCompiler.cpp |
| diff --git a/src/IceCompiler.cpp b/src/IceCompiler.cpp |
| index 7a0dcbb5fec73461662ca787e1ba22b915123a37..cd56205545c03310e9d2265ed8e7f33da334b27c 100644 |
| --- a/src/IceCompiler.cpp |
| +++ b/src/IceCompiler.cpp |
| @@ -93,6 +93,9 @@ void Compiler::run(const Ice::ClFlagsExtra &ExtraFlags, GlobalContext &Ctx, |
| Ctx.getErrorStatus()->assign(EC_Args); |
| return; |
| } |
| + // Globals must be kept alive after lowering when converting from llvm to |
| + // ice. |
|
Jim Stichnoth
2016/03/14 22:21:31
"Ice" instead of "ice"? Also, I think we exclusiv
John
2016/03/15 15:07:18
Done.
|
| + Ctx.setDisposeGlobalVariablesAfterLowering(false); |
| // Parse the input LLVM IR file into a module. |
| llvm::SMDiagnostic Err; |
| TimerMarker T1(Ice::TimerStack::TT_parse, &Ctx); |