[Driver][test] Avoid undefined grep in darwin-ld.c
authorHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 2 Aug 2019 19:26:05 +0000 (19:26 +0000)
committerHubert Tong <hubert.reinterpretcast@gmail.com>
Fri, 2 Aug 2019 19:26:05 +0000 (19:26 +0000)
commitd5765ee5645948782bab583f6f8bb8a248f6c263
tree4dff2a22024e535cd702bcd44a940dcf47607ec5
parent06cccc5e6f7a7c496ae71a959b64a0247c8ca263
[Driver][test] Avoid undefined grep in darwin-ld.c

Summary:
question-mark is not a BRE special character.

POSIX.1-2017 XBD Section 9.3.2 indicates that the interpretation of `\?`
as used by rC366282 is undefined. This patch uses an ERE instead.

Reviewers: rnk, daltenty, xingxue, jasonliu

Reviewed By: rnk

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D65668

llvm-svn: 367709
clang/test/Driver/darwin-ld.c