Skip to content

Commit b9b312d

Browse files
committed
Condition too restrictive.
1 parent bcf2a47 commit b9b312d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

clang/lib/AST/Expr.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,9 +748,7 @@ std::string PredefinedExpr::ComputeName(PredefinedIdentKind IK,
748748
if (MD->isVirtual() && IK != PredefinedIdentKind::PrettyFunctionNoVirtual)
749749
Out << "virtual ";
750750
if (MD->isStatic()) {
751-
bool IsFunctionInMSVCCommpatEnv =
752-
IK == PredefinedIdentKind::Function && LO.MSVCCompat;
753-
if (ForceElaboratedPrinting && !IsFunctionInMSVCCommpatEnv)
751+
if (!ForceElaboratedPrinting)
754752
Out << "static ";
755753
}
756754
}

0 commit comments

Comments
 (0)