[compiler-rt][builtins] Ignore the deprecated warning for

CFPropertyListCreateFromXMLData that's used in __isOSVersionAtLeast

llvm-svn: 297613
This commit is contained in:
Alex Lorenz 2017-03-13 11:00:44 +00:00
parent 5b35d1980c
commit c630f349b8
1 changed files with 5 additions and 1 deletions

View File

@ -75,9 +75,13 @@ static void parseSystemVersionPList(void *Unused) {
if (&CFPropertyListCreateWithData)
PListRef = CFPropertyListCreateWithData(
NULL, FileContentsRef, kCFPropertyListImmutable, NULL, NULL);
else
else {
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
PListRef = CFPropertyListCreateFromXMLData(NULL, FileContentsRef,
kCFPropertyListImmutable, NULL);
#pragma clang diagnostic pop
}
if (!PListRef)
goto Fail;