Skip to content

Commit e824672

Browse files
committed
Closes #35
1 parent 10d94d9 commit e824672

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clang/lib/Basic/TargetInfo.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ bool TargetInfo::initFeatureMap(
529529
setFeatureEnabled(Features, "sse4.2", true);
530530
setFeatureEnabled(Features, "invpcid", true);
531531
setFeatureEnabled(Features, "rtm", true);
532+
setFeatureEnabled(Features, "fsgsbase", true);
532533
#endif
533534

534535
for (const auto &F : FeatureVec) {

clang/lib/Sema/SemaDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4323,9 +4323,10 @@ bool Sema::MergeFunctionDecl(FunctionDecl *New, NamedDecl *&OldD, Scope *S,
43234323

43244324
PrevDiag = diag::note_previous_builtin_declaration;
43254325
}
4326-
4326+
#ifndef _WIN32
43274327
Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
43284328
Diag(OldLocation, PrevDiag) << Old << Old->getType();
4329+
#endif
43294330
return true;
43304331
}
43314332

0 commit comments

Comments
 (0)