summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-08 20:50:47 +0000
committerOwen Anderson <resistor@mac.com>2009-07-08 20:50:47 +0000
commitd1fbd142945f5ef0c273c3d756431f8cb9d25ded (patch)
tree4abdf9a72e70b434f1c49869e066ff4e62d8c317 /examples
parent096e7280c2abceb4dcc119677c31a2055bc8ccde (diff)
downloadllvm-d1fbd142945f5ef0c273c3d756431f8cb9d25ded.tar.gz
llvm-d1fbd142945f5ef0c273c3d756431f8cb9d25ded.tar.bz2
llvm-d1fbd142945f5ef0c273c3d756431f8cb9d25ded.tar.xz
Push LLVMContext _back_ through IRBuilder.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75040 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples')
-rw-r--r--examples/Kaleidoscope/toy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/toy.cpp b/examples/Kaleidoscope/toy.cpp
index 612cfa547c..3893aeac59 100644
--- a/examples/Kaleidoscope/toy.cpp
+++ b/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;