diff options
Diffstat (limited to 'examples/Kaleidoscope/toy.cpp')
-rw-r--r-- | examples/Kaleidoscope/toy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/Kaleidoscope/toy.cpp b/examples/Kaleidoscope/toy.cpp index 004c7b7c06..22b8285e92 100644 --- a/examples/Kaleidoscope/toy.cpp +++ b/examples/Kaleidoscope/toy.cpp @@ -856,7 +856,7 @@ Value *ForExprAST::Codegen() { // for expr always returns 0.0. - return TheFunction->getContext().getNullValue(Type::DoubleTy); + return Constant::getNullValue(Type::DoubleTy); } Value *VarExprAST::Codegen() { |