summaryrefslogtreecommitdiffstats
path: root/llvm/examples/Kaleidoscope/Chapter4/toy.cpp
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@boostpro.com>2011-07-11 22:39:46 +0000
committerJohn Wiegley <johnw@boostpro.com>2011-07-11 22:39:46 +0000
commit2a0177ba4c7288ee1fddac012a84b05b5a108115 (patch)
tree85ed180aeb1361bfe650cce0fb5c57c607d30f87 /llvm/examples/Kaleidoscope/Chapter4/toy.cpp
parent2e12550e373fb90c6fca93d58e2c36114457019e (diff)
downloadbcm5719-llvm-2a0177ba4c7288ee1fddac012a84b05b5a108115.tar.gz
bcm5719-llvm-2a0177ba4c7288ee1fddac012a84b05b5a108115.zip
fix some examples
llvm-svn: 134933
Diffstat (limited to 'llvm/examples/Kaleidoscope/Chapter4/toy.cpp')
-rw-r--r--llvm/examples/Kaleidoscope/Chapter4/toy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/examples/Kaleidoscope/Chapter4/toy.cpp b/llvm/examples/Kaleidoscope/Chapter4/toy.cpp
index a50d2a43dd2..4ac7e0eb565 100644
--- a/llvm/examples/Kaleidoscope/Chapter4/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Chapter4/toy.cpp
@@ -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);
OpenPOWER on IntegriCloud