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.
2 parents 0d99110 + fa9c544 commit 0d69f3fCopy full SHA for 0d69f3f
README.md
@@ -23,7 +23,7 @@ let builder = IRBuilder(module: module)
23
let main = builder.addFunction(
24
"main",
25
type: FunctionType(argTypes: [],
26
- returnType: VoidType())
+ returnType: IntType.int64)
27
)
28
let entry = main.appendBasicBlock(named: "entry")
29
builder.positionAtEnd(of: entry)
@@ -42,7 +42,7 @@ This simple program generates the following IR:
42
```llvm
43
// module.dump()
44
45
-define void @main() {
+define i64 @main() {
46
entry:
47
ret i64 42
48
}
0 commit comments