fix some examples
[oota-llvm.git] / examples / Kaleidoscope / Chapter3 / toy.cpp
index 80d691dd536d9c21d36874a2abf5c6bd88c6132c..22fe6772b3c2d616621b8cb93c7ae1760465f142 100644 (file)
@@ -400,8 +400,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);