mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user