X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=blobdiff_plain;f=examples%2FKaleidoscope%2FOrc%2Flazy_codegen%2Ftoy.cpp;h=1dc4772d5257c96d8d4c0e0d086516eae9e32e53;hp=f5a6c19614b3a19975bc7dea5b4ff6edf46c1707;hb=e6bb1eaae586b01f4d96ba2f7b82c4c26ae38fd9;hpb=0317b8efaff0addbf14d66583f37483c65e3f7f2;ds=sidebyside diff --git a/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp b/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp index f5a6c19614b..1dc4772d525 100644 --- a/examples/Kaleidoscope/Orc/lazy_codegen/toy.cpp +++ b/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(*LHS); + auto &LHSVar = static_cast(*LHS); // Codegen the RHS. Value *Val = RHS->IRGen(C); if (!Val) return nullptr;