projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Big Kaleidoscope tutorial update.
[oota-llvm.git]
/
examples
/
Kaleidoscope
/
Chapter2
/
toy.cpp
diff --git
a/examples/Kaleidoscope/Chapter2/toy.cpp
b/examples/Kaleidoscope/Chapter2/toy.cpp
index 9ecf75d346706f71d3469eaaec1a3b6b0800344f..14cba32f5f91308584baa2a236efda4af9b67a27 100644
(file)
--- a/
examples/Kaleidoscope/Chapter2/toy.cpp
+++ b/
examples/Kaleidoscope/Chapter2/toy.cpp
@@
-348,8
+348,8
@@
static std::unique_ptr<FunctionAST> ParseDefinition() {
static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
if (auto E = ParseExpression()) {
// Make an anonymous proto.
static std::unique_ptr<FunctionAST> ParseTopLevelExpr() {
if (auto E = ParseExpression()) {
// Make an anonymous proto.
- auto Proto =
-
llvm::make_unique<PrototypeAST>("",
std::vector<std::string>());
+ auto Proto =
llvm::make_unique<PrototypeAST>("__anon_expr",
+
std::vector<std::string>());
return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E));
}
return nullptr;
return llvm::make_unique<FunctionAST>(std::move(Proto), std::move(E));
}
return nullptr;