diff options
author | John Wiegley <johnw@boostpro.com> | 2011-07-11 22:39:46 +0000 |
---|---|---|
committer | John Wiegley <johnw@boostpro.com> | 2011-07-11 22:39:46 +0000 |
commit | d1c2bd8e6e37e08393f7c4980efc5bcb66b6f0d0 (patch) | |
tree | c9b9212bb443efd83766c5bad686d549c6685932 /examples/Kaleidoscope/Chapter5 | |
parent | bf843e6974007a9a125453a61a2c4a64ee3a6186 (diff) | |
download | external_llvm-d1c2bd8e6e37e08393f7c4980efc5bcb66b6f0d0.zip external_llvm-d1c2bd8e6e37e08393f7c4980efc5bcb66b6f0d0.tar.gz external_llvm-d1c2bd8e6e37e08393f7c4980efc5bcb66b6f0d0.tar.bz2 |
fix some examples
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/Kaleidoscope/Chapter5')
-rw-r--r-- | examples/Kaleidoscope/Chapter5/toy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/Kaleidoscope/Chapter5/toy.cpp b/examples/Kaleidoscope/Chapter5/toy.cpp index 5dcc7ed..20a0d2b 100644 --- a/examples/Kaleidoscope/Chapter5/toy.cpp +++ b/examples/Kaleidoscope/Chapter5/toy.cpp @@ -653,8 +653,8 @@ Value *ForExprAST::Codegen() { Function *PrototypeAST::Codegen() { // Make the function type: double(double,double) etc. - std::vector<const Type*> Doubles(Args.size(), - Type::getDoubleTy(getGlobalContext())); + std::vector<Type*> Doubles(Args.size(), + Type::getDoubleTy(getGlobalContext())); FunctionType *FT = FunctionType::get(Type::getDoubleTy(getGlobalContext()), Doubles, false); |