Skip to content

Commit 81b5f4c

Browse files
committed
Closes #93
1 parent 8060245 commit 81b5f4c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clang/lib/Sema/SemaDecl.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4366,6 +4366,13 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S,
43664366
PrevDiag = diag::note_previous_builtin_declaration;
43674367
}
43684368

4369+
#ifdef _WIN32
4370+
// Check and merge MSVC compatible function declarations.
4371+
if (!MergeMSVCCompatibleFunctionDecls(New, Old, S, MergeTypeWithOld)) {
4372+
return false;
4373+
}
4374+
#endif
4375+
43694376
Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
43704377
Diag(OldLocation, PrevDiag) << Old << Old->getType();
43714378
llvm::errs() << "NewType: " << New->getType().getAsString() << "\n";

0 commit comments

Comments
 (0)