Move the implementation of Char printing into swift.swift, and get rid of the old printChar. Fix a bug in IRGen I ran into while working on that.

Swift SVN r1620
This commit is contained in:
Eli Friedman
2012-04-25 03:39:48 +00:00
parent 8856293d94
commit e6865b3b23
2 changed files with 1 additions and 33 deletions

View File

@@ -289,6 +289,7 @@ llvm::BasicBlock *IRGenFunction::getUnreachableBlock() {
// Create it at the very end of the function.
UnreachableBB = createBasicBlock("unreachable");
new llvm::UnreachableInst(UnreachableBB->getContext(), UnreachableBB);
CurFn->getBasicBlockList().push_back(UnreachableBB);
return UnreachableBB;