]> granicus.if.org Git - llvm/commit
[Kaleidoscope] toy.cpp use after move fix
authorPeter Szecsi <szepet95@gmail.com>
Sun, 7 May 2017 11:00:01 +0000 (11:00 +0000)
committerPeter Szecsi <szepet95@gmail.com>
Sun, 7 May 2017 11:00:01 +0000 (11:00 +0000)
commit2c224bcd52a7f0e561e2729d1085fd390e20e189
tree52b0e60ea9c2dddc0358e539d8e0e2f6b8015231
parent8582763b6572004bcd65b569e7e462c56fc32e96
[Kaleidoscope] toy.cpp use after move fix

The variable Proto is moved at the beginning of the codegen() function.
According to the comment above, the pointed object should be used due the
reference P.

Differential Revision: https://reviews.llvm.org/D32939

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@302369 91177308-0d34-0410-b5e6-96231b3b80d8
examples/Kaleidoscope/BuildingAJIT/Chapter1/toy.cpp
examples/Kaleidoscope/BuildingAJIT/Chapter2/toy.cpp
examples/Kaleidoscope/BuildingAJIT/Chapter3/toy.cpp
examples/Kaleidoscope/Chapter6/toy.cpp
examples/Kaleidoscope/Chapter7/toy.cpp
examples/Kaleidoscope/Chapter8/toy.cpp