fix some examples
[oota-llvm.git] / examples / Kaleidoscope / Chapter7 / toy.cpp
index 6afd11847be70ee8518a22d43efbe944331a2992..5e3897941204175297e7a9da0505f947f869cd27 100644 (file)
@@ -905,8 +905,8 @@ Value *VarExprAST::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);