Skip to content

Commit cbc5d20

Browse files
authored
Update CGExprCXX.cpp
1 parent ce6d7f8 commit cbc5d20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CodeGen/CGExprCXX.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(
215215

216216
// Compute the object pointer.
217217
bool CanUseVirtualCall = MD->isVirtual() && !HasQualifier;
218+
#ifdef _WIN32
218219
if (CanUseVirtualCall && Base->isImplicitCXXThis()) {
219220
// [MSVC Compatibility]
220221
if (CurFuncDecl && (CurFuncDecl->getKind() == Decl::CXXConstructor) &&
@@ -226,7 +227,7 @@ RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(
226227
}
227228
}
228229
}
229-
230+
#endif
230231
const CXXMethodDecl *DevirtualizedMethod = nullptr;
231232
if (CanUseVirtualCall &&
232233
MD->getDevirtualizedMethod(Base, getLangOpts().AppleKext)) {

0 commit comments

Comments
 (0)