fix some examples
[oota-llvm.git] / examples / Kaleidoscope / Chapter4 / toy.cpp
index a50d2a43dd28781fcc270b50626e4659e67a5f67..4ac7e0eb5653cbe15bd333126adf015a14f6b291 100644 (file)
@@ -408,8 +408,8 @@ Value *CallExprAST::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);