Skip to content

Commit 20eb29a

Browse files
committed
[cxx-interop] check file and directory, not or.
1 parent a71fbb5 commit 20eb29a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/ClangImporter/ImportDecl.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3208,10 +3208,10 @@ namespace {
32083208
d->getName() == "cos" || d->getName() == "exit";
32093209
};
32103210
if (decl->getOwningModule() &&
3211-
(decl->getOwningModule()
3211+
decl->getOwningModule()
32123212
->getTopLevelModule()
3213-
->getFullModuleName() == "std" ||
3214-
isAlternativeCStdlibFunctionFromTextualHeader(decl))) {
3213+
->getFullModuleName() == "std" &&
3214+
isAlternativeCStdlibFunctionFromTextualHeader(decl)) {
32153215
auto filename =
32163216
Impl.getClangPreprocessor().getSourceManager().getFilename(
32173217
decl->getLocation());

0 commit comments

Comments
 (0)