We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce6d7f8 commit cbc5d20Copy full SHA for cbc5d20
clang/lib/CodeGen/CGExprCXX.cpp
@@ -215,6 +215,7 @@ RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(
215
216
// Compute the object pointer.
217
bool CanUseVirtualCall = MD->isVirtual() && !HasQualifier;
218
+#ifdef _WIN32
219
if (CanUseVirtualCall && Base->isImplicitCXXThis()) {
220
// [MSVC Compatibility]
221
if (CurFuncDecl && (CurFuncDecl->getKind() == Decl::CXXConstructor) &&
@@ -226,7 +227,7 @@ RValue CodeGenFunction::EmitCXXMemberOrOperatorMemberCallExpr(
226
227
}
228
229
-
230
+#endif
231
const CXXMethodDecl *DevirtualizedMethod = nullptr;
232
if (CanUseVirtualCall &&
233
MD->getDevirtualizedMethod(Base, getLangOpts().AppleKext)) {
0 commit comments