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:
parent
0bf5df4240
commit
1c59f5590f
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user