Skip to content

Commit 0741b13

Browse files
committed
Provide an explanation for failure to cast attribute
1 parent f0485c6 commit 0741b13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/LLVM/Function+Attributes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ extension Function {
326326
let cstring = LLVMGetStringAttributeKind(stringAttr.llvm, &length)
327327
LLVMRemoveStringAttributeAtIndex(llvm, index.rawValue, cstring, length)
328328
default:
329-
fatalError()
329+
fatalError("unexpected attribute type")
330330
}
331331
}
332332

0 commit comments

Comments
 (0)