Skip to content

Commit ef05798

Browse files
authored
Merge pull request swiftlang#36387 from eeckstein/fix-sillocation
SILLocation: fix a compiler error in no-assert builds
2 parents 58cd10a + acd9e63 commit ef05798

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)