From ad60be9bdc88914e2232e10df99e245ff97ab7a3 Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 8 Oct 2015 17:22:12 +0000 Subject: Make the Kaleidoscope Orc examples -Wdeprecated clean by avoiding copying some AST nodes llvm-svn: 249703 --- llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp') diff --git a/llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp b/llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp index f9b972e8294..f53fe2477fe 100644 --- a/llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp +++ b/llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp @@ -781,7 +781,7 @@ Value *BinaryExprAST::IRGen(IRGenContext &C) const { // Special case '=' because we don't want to emit the LHS as an expression. if (Op == '=') { // Assignment requires the LHS to be an identifier. - auto LHSVar = static_cast(*LHS); + auto &LHSVar = static_cast(*LHS); // Codegen the RHS. Value *Val = RHS->IRGen(C); if (!Val) return nullptr; -- cgit v1.2.3