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 3893aeac59..134742516d 100644 --- a/examples/Kaleidoscope/toy.cpp +++ b/examples/Kaleidoscope/toy.cpp @@ -854,7 +854,7 @@ Value *ForExprAST::Codegen() { // for expr always returns 0.0. - return Constant::getNullValue(Type::DoubleTy); + return TheFunction->getContext()->getNullValue(Type::DoubleTy); } Value *VarExprAST::Codegen() { |