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/MCJIT/initial | |
| 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/MCJIT/initial')
| -rw-r--r-- | llvm/examples/Kaleidoscope/MCJIT/initial/toy.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/MCJIT/initial/toy.cpp b/llvm/examples/Kaleidoscope/MCJIT/initial/toy.cpp index dd35358753d..9455946087d 100644 --- a/llvm/examples/Kaleidoscope/MCJIT/initial/toy.cpp +++ b/llvm/examples/Kaleidoscope/MCJIT/initial/toy.cpp @@ -897,7 +897,7 @@ Value *BinaryExprAST::Codegen() { // Special case '=' because we don't want to emit the LHS as an expression. if (Op == '=') { // Assignment requires the LHS to be an identifier. - 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. |

