summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2015-10-08 17:22:12 +0000
committerDavid Blaikie <dblaikie@gmail.com>2015-10-08 17:22:12 +0000
commitad60be9bdc88914e2232e10df99e245ff97ab7a3 (patch)
treea07d5efca6222ce08807659e59843e7a186e6284 /llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp
parentf61a08fbf106139b6bea1a6e532d8c43e9e67b56 (diff)
downloadbcm5719-llvm-ad60be9bdc88914e2232e10df99e245ff97ab7a3.tar.gz
bcm5719-llvm-ad60be9bdc88914e2232e10df99e245ff97ab7a3.zip
Make the Kaleidoscope Orc examples -Wdeprecated clean by avoiding copying some AST nodes
llvm-svn: 249703
Diffstat (limited to 'llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp2
1 files changed, 1 insertions, 1 deletions
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<VariableExprAST&>(*LHS);
+ auto &LHSVar = static_cast<VariableExprAST &>(*LHS);
// Codegen the RHS.
Value *Val = RHS->IRGen(C);
if (!Val) return nullptr;
OpenPOWER on IntegriCloud