diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-10-08 17:22:12 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-10-08 17:22:12 +0000 |
commit | ad60be9bdc88914e2232e10df99e245ff97ab7a3 (patch) | |
tree | a07d5efca6222ce08807659e59843e7a186e6284 /llvm/examples/Kaleidoscope/Orc/lazy_irgen/toy.cpp | |
parent | f61a08fbf106139b6bea1a6e532d8c43e9e67b56 (diff) | |
download | bcm5719-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.cpp | 2 |
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; |