diff options
Diffstat (limited to 'llvm/examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp')
-rw-r--r-- | llvm/examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp b/llvm/examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp index 7f5ed137cec..77b7f001095 100644 --- a/llvm/examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp +++ b/llvm/examples/Kaleidoscope/MCJIT/cached/toy-jit.cpp @@ -672,7 +672,7 @@ Value *BinaryExprAST::Codegen() { // For now, I'm building without RTTI because LLVM builds that way by // default and so we need to build that way to use the command line supprt. // If you build LLVM with RTTI this can be changed back to a dynamic_cast. - 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. |