Skip to content

Commit 1d95d69

Browse files
committed
[Parse] Remove _Nonnull
_Nonnull is not a thing in Windows `cl.exe`. Since it's not needed in C++, just remove it.
1 parent 5be944c commit 1d95d69

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

lib/Parse/Lexer.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@
3232
#include <limits>
3333

3434
extern "C" bool
35-
swift_ASTGen_lexRegexLiteral(const char *_Nonnull *_Nonnull curPtrPtr,
36-
const char *_Nonnull bufferEndPtr,
37-
bool mustBeRegex, void *_Nullable diagEngine);
35+
swift_ASTGen_lexRegexLiteral(const char ** curPtrPtr, const char * bufferEndPtr,
36+
bool mustBeRegex, void * diagEngine);
3837

3938
using namespace swift;
4039

lib/Parse/ParseRegex.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919
#include "swift/Parse/Parser.h"
2020

2121
extern "C" bool swift_ASTGen_parseRegexLiteral(
22-
BridgedString input, size_t *_Nonnull versionOut,
23-
void *_Nonnull UnsafeMutableRawPointer, size_t captureStructureSize,
24-
BridgedSourceLoc diagLoc, void *_Nonnull diagEngine);
22+
BridgedString input, size_t * versionOut,
23+
void * UnsafeMutableRawPointer, size_t captureStructureSize,
24+
BridgedSourceLoc diagLoc, void * diagEngine);
2525

2626
using namespace swift;
2727

0 commit comments

Comments
 (0)