summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/toy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/examples/Kaleidoscope/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/toy.cpp b/llvm/examples/Kaleidoscope/toy.cpp
index 612cfa547ca..3893aeac591 100644
--- a/llvm/examples/Kaleidoscope/toy.cpp
+++ b/llvm/examples/Kaleidoscope/toy.cpp
@@ -604,7 +604,7 @@ static PrototypeAST *ParseExtern() {
//===----------------------------------------------------------------------===//
static Module *TheModule;
-static IRBuilder<> Builder;
+static IRBuilder<> Builder(getGlobalContext());
static std::map<std::string, AllocaInst*> NamedValues;
static FunctionPassManager *TheFPM;
OpenPOWER on IntegriCloud