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 | |
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')
4 files changed, 4 insertions, 4 deletions
diff --git a/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp b/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp index 667bca46afd..fe4ac5d0c28 100644 --- a/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp +++ b/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp @@ -782,7 +782,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; diff --git a/llvm/examples/Kaleidoscope/Orc/initial/toy.cpp b/llvm/examples/Kaleidoscope/Orc/initial/toy.cpp index 8dab73bf73a..085d0da8f51 100644 --- a/llvm/examples/Kaleidoscope/Orc/initial/toy.cpp +++ b/llvm/examples/Kaleidoscope/Orc/initial/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; diff --git a/llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp b/llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp index f5a6c19614b..1dc4772d525 100644 --- a/llvm/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp +++ b/llvm/examples/Kaleidoscope/Orc/lazy_codegen/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; 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; |