diff options
author | Lang Hames <lhames@gmail.com> | 2015-04-22 20:58:34 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2015-04-22 20:58:34 +0000 |
commit | a32764453444da90e92ba0041f40b4d94fadf2d4 (patch) | |
tree | 232dbf2925f93f9cf1835e7ad8464c64eb3ad028 /llvm/examples/Kaleidoscope/Chapter7/toy.cpp | |
parent | 60dea16af4c4799bade66d7a71d573a4a3a9e40c (diff) | |
download | bcm5719-llvm-a32764453444da90e92ba0041f40b4d94fadf2d4.tar.gz bcm5719-llvm-a32764453444da90e92ba0041f40b4d94fadf2d4.zip |
[Kaleidoscope] Fix incorrect use of reinterpret_cast.
Thanks to Dave Blaikie for catching this.
llvm-svn: 235543
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter7/toy.cpp')
-rw-r--r-- | llvm/examples/Kaleidoscope/Chapter7/toy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter7/toy.cpp b/llvm/examples/Kaleidoscope/Chapter7/toy.cpp index acf21f898f8..b1a41fa01b7 100644 --- a/llvm/examples/Kaleidoscope/Chapter7/toy.cpp +++ b/llvm/examples/Kaleidoscope/Chapter7/toy.cpp @@ -716,7 +716,7 @@ Value *BinaryExprAST::Codegen() { // This assume we're building without RTTI because LLVM builds that way by // default. If you build LLVM with RTTI this can be changed to a // dynamic_cast for automatic error checking. - VariableExprAST *LHSE = reinterpret_cast<VariableExprAST *>(LHS); + VariableExprAST *LHSE = static_cast<VariableExprAST *>(LHS); if (!LHSE) return ErrorV("destination of '=' must be a variable"); // Codegen the RHS. |