summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-04-13 19:45:05 +0000
committerBill Wendling <isanbard@gmail.com>2009-04-13 19:45:05 +0000
commit7aba8e30c41624174777f93647eefc420564374b (patch)
tree922caef07a2f2b741b670f91638be7ac8f0a2304
parentafbe7d53f55223865e6ba8422cc2a8efe0fa4966 (diff)
downloadbcm5719-llvm-7aba8e30c41624174777f93647eefc420564374b.tar.gz
bcm5719-llvm-7aba8e30c41624174777f93647eefc420564374b.zip
Get rid of some compile warnings.
llvm-svn: 68978
-rw-r--r--llvm/examples/Kaleidoscope/toy.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/examples/Kaleidoscope/toy.cpp b/llvm/examples/Kaleidoscope/toy.cpp
index f28c274d570..87950d7e91b 100644
--- a/llvm/examples/Kaleidoscope/toy.cpp
+++ b/llvm/examples/Kaleidoscope/toy.cpp
@@ -512,7 +512,7 @@ static ExprAST *ParseExpression() {
static PrototypeAST *ParsePrototype() {
std::string FnName;
- int Kind = 0; // 0 = identifier, 1 = unary, 2 = binary.
+ unsigned Kind = 0; // 0 = identifier, 1 = unary, 2 = binary.
unsigned BinaryPrecedence = 30;
switch (CurTok) {
@@ -791,7 +791,6 @@ Value *ForExprAST::Codegen() {
// Make the new basic block for the loop header, inserting after current
// block.
- BasicBlock *PreheaderBB = Builder.GetInsertBlock();
BasicBlock *LoopBB = BasicBlock::Create("loop", TheFunction);
// Insert an explicit fall through from the current block to the LoopBB.
@@ -837,7 +836,6 @@ Value *ForExprAST::Codegen() {
"loopcond");
// Create the "after loop" block and insert it.
- BasicBlock *LoopEndBB = Builder.GetInsertBlock();
BasicBlock *AfterBB = BasicBlock::Create("afterloop", TheFunction);
// Insert the conditional branch into the end of LoopEndBB.
OpenPOWER on IntegriCloud