1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00

Make the Kaleidoscope Orc examples -Wdeprecated clean by avoiding copying some AST nodes

llvm-svn: 249703
This commit is contained in:
David Blaikie 2015-10-08 17:22:12 +00:00
parent 0bf5df4240
commit 1c59f5590f
4 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;