Hold the LLVMContext by reference instead of by pointer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74642 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Frontend/Backend.cpp b/lib/Frontend/Backend.cpp
index dc84cd8..6b7f9ae 100644
--- a/lib/Frontend/Backend.cpp
+++ b/lib/Frontend/Backend.cpp
@@ -76,7 +76,7 @@
BackendConsumer(BackendAction action, Diagnostic &Diags,
const LangOptions &langopts, const CompileOptions &compopts,
const std::string &infile, llvm::raw_ostream* OS,
- LLVMContext* C) :
+ const LLVMContext& C) :
Action(action),
CompileOpts(compopts),
AsmOutStream(OS),
@@ -361,7 +361,7 @@
const CompileOptions &CompileOpts,
const std::string& InFile,
llvm::raw_ostream* OS,
- LLVMContext* C) {
+ const LLVMContext& C) {
return new BackendConsumer(Action, Diags, LangOpts, CompileOpts,
InFile, OS, C);
}