Skip to content

Commit c5e9e20

Browse files
committed
Include assert.h manually in SourceLoc.h.
On the BSDs when building with bootstrapping and therefore modules enabled, this will result in a "declaration here is not visible" error. This is _possibly_ because the assert implementation is not reexported from LLVM, maybe due to libc differences. Regardless, this fixes the problem and should be relatively inocuous to unconditionally include.
1 parent ab6faa9 commit c5e9e20

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/swift/Basic/SourceLoc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#include "llvm/ADT/Hashing.h"
2424
#include "llvm/ADT/StringRef.h"
2525
#include "llvm/Support/SMLoc.h"
26+
#include <assert.h>
2627
#include <functional>
2728

2829
namespace swift {

0 commit comments

Comments
 (0)