Skip to content

Commit acd9e63

Browse files
committed
SILLocation: fix a compiler error in no-assert builds
1 parent 58cd10a commit acd9e63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SIL/SILLocation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ class SILLocation {
205205
return storage.extendedASTNodeLoc->primary;
206206
case SourceLocKind:
207207
case FilenameAndLocationKind:
208-
assert(false);
208+
llvm_unreachable("location type has no AST node");
209209
}
210210
}
211211

0 commit comments

Comments
 (0)