llvm.org GIT mirror llvm / e6bb1ea
Make the Kaleidoscope Orc examples -Wdeprecated clean by avoiding copying some AST nodes git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249703 91177308-0d34-0410-b5e6-96231b3b80d8 David Blaikie 4 years ago
4 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
781781 // Special case '=' because we don't want to emit the LHS as an expression.
782782 if (Op == '=') {
783783 // Assignment requires the LHS to be an identifier.
784 auto LHSVar = static_cast&>(*LHS);
784 auto &LHSVar = static_cast&>(*LHS);
785785 // Codegen the RHS.
786786 Value *Val = RHS->IRGen(C);
787787 if (!Val) return nullptr;
780780 // Special case '=' because we don't want to emit the LHS as an expression.
781781 if (Op == '=') {
782782 // Assignment requires the LHS to be an identifier.
783 auto LHSVar = static_cast&>(*LHS);
783 auto &LHSVar = static_cast&>(*LHS);
784784 // Codegen the RHS.
785785 Value *Val = RHS->IRGen(C);
786786 if (!Val) return nullptr;
780780 // Special case '=' because we don't want to emit the LHS as an expression.
781781 if (Op == '=') {
782782 // Assignment requires the LHS to be an identifier.
783 auto LHSVar = static_cast&>(*LHS);
783 auto &LHSVar = static_cast&>(*LHS);
784784 // Codegen the RHS.
785785 Value *Val = RHS->IRGen(C);
786786 if (!Val) return nullptr;
780780 // Special case '=' because we don't want to emit the LHS as an expression.
781781 if (Op == '=') {
782782 // Assignment requires the LHS to be an identifier.
783 auto LHSVar = static_cast&>(*LHS);
783 auto &LHSVar = static_cast&>(*LHS);
784784 // Codegen the RHS.
785785 Value *Val = RHS->IRGen(C);
786786 if (!Val) return nullptr;