Skip to content

Commit 562e6f5

Browse files
compnerdbob-wilson
authored andcommitted
ClangImporter: adjust for SVN r345637
`ObjC1` has been removed from clang. Use `ObjC` to detect if Objective-C language support is enabled.
1 parent 2c91da5 commit 562e6f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ClangImporter/ImportType.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ ImportedType ClangImporter::Implementation::importType(
14531453
// This bans some trickery that the redefinition types enable, but is a more
14541454
// sane model overall.
14551455
auto &clangContext = getClangASTContext();
1456-
if (clangContext.getLangOpts().ObjC1) {
1456+
if (clangContext.getLangOpts().ObjC) {
14571457
if (clangContext.hasSameUnqualifiedType(
14581458
type, clangContext.getObjCIdRedefinitionType()) &&
14591459
!clangContext.hasSameUnqualifiedType(

0 commit comments

Comments
 (0)