Skip to content

Commit b97b80a

Browse files
author
Tim Corringham
committed
Remove check for virtual base class
The unnecessary check for a virtual base class had previously been removed but was apparently accidentally reintroduced by a subsequent commit.
1 parent 3613f47 commit b97b80a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tools/clang/lib/CodeGen/CGHLSLMS.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2576,7 +2576,7 @@ bool CGMSHLSLRuntime::FindDispatchGridSemantic(const CXXRecordDecl *RD,
25762576
for (const CXXBaseSpecifier &Base : RD->bases()) {
25772577
DXASSERT(!Base.getType()->isDependentType(),
25782578
"Node Record with dependent base class not caught by Sema");
2579-
if (Base.isVirtual() || Base.getType()->isDependentType())
2579+
if (Base.getType()->isDependentType())
25802580
continue;
25812581
CXXRecordDecl *BaseDecl = Base.getType()->getAsCXXRecordDecl();
25822582
CharUnits BaseOffset = Offset + Layout.getBaseClassOffset(BaseDecl);

0 commit comments

Comments
 (0)