Skip to content

Commit eac8e32

Browse files
committed
update code comments
1 parent f64ee2c commit eac8e32

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/lib/CodeGen/CGClass.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,8 +2827,9 @@ void CodeGenFunction::EmitTypeMetadataCodeForVCall(const CXXRecordDecl *RD,
28272827
SourceLocation Loc) {
28282828
if (SanOpts.has(SanitizerKind::CFIVCall))
28292829
EmitVTablePtrCheckForCall(RD, VTable, CodeGenFunction::CFITCK_VCall, Loc);
2830-
// Emit the type test assumes for the features of WPD (only when LTO
2831-
// visibility is NOT public) and speculative devirtualization.
2830+
// Emit the intrinsics of (type_test and assume) for the features of WPD and
2831+
// speculative devirtualization. For WPD, emit the intrinsics only for the
2832+
// case of non_public LTO visibility.
28322833
else if ((CGM.getCodeGenOpts().WholeProgramVTables &&
28332834
!CGM.AlwaysHasLTOVisibilityPublic(RD)) ||
28342835
CGM.getCodeGenOpts().DevirtualizeSpeculatively) {

0 commit comments

Comments
 (0)