We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd0e4a9 commit 37d8109Copy full SHA for 37d8109
Sources/LLVM/Switch.swift
@@ -19,6 +19,12 @@ public struct Switch: IRValue {
19
LLVMAddCase(llvm, value.asLLVM(), block.asLLVM())
20
}
21
22
+ /// Retrieves the basic block the flow of control reaches should a
23
+ /// value not match any of the cases in the branch table.
24
+ var defaultDestination: BasicBlock {
25
+ return BasicBlock(llvm: LLVMGetSwitchDefaultDest(self.llvm))
26
+ }
27
+
28
/// Retrieves the underlying LLVM value object.
29
public func asLLVM() -> LLVMValueRef {
30
return llvm
0 commit comments