fix some examples
[oota-llvm.git] / examples / Kaleidoscope / Chapter6 / toy.cpp
index c5576992c3547e416a03af9f49ebef088092a731..7d318159b186db0cf998f093c964961793ab5030 100644 (file)
@@ -757,8 +757,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);