Skip to content

Commit f07a9ff

Browse files
committed
[cxx-interop] check file and directory, not or.
1 parent 26e3056 commit f07a9ff

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
@@ -3211,10 +3211,10 @@ namespace {
32113211
d->getName() == "cos" || d->getName() == "exit";
32123212
};
32133213
if (decl->getOwningModule() &&
3214-
(decl->getOwningModule()
3214+
decl->getOwningModule()
32153215
->getTopLevelModule()
3216-
->getFullModuleName() == "std" ||
3217-
isAlternativeCStdlibFunctionFromTextualHeader(decl))) {
3216+
->getFullModuleName() == "std" &&
3217+
isAlternativeCStdlibFunctionFromTextualHeader(decl)) {
32183218
auto filename =
32193219
Impl.getClangPreprocessor().getSourceManager().getFilename(
32203220
decl->getLocation());

0 commit comments

Comments
 (0)