Skip to content

Commit c1f797e

Browse files
committed
[CIR] Fix build due to the improvement after 91cdd35
1 parent dda996b commit c1f797e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenClass.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ void CIRGenFunction::initializeVTablePointer(mlir::Location loc,
284284
} else {
285285
// We can just use the base offset in the complete class.
286286
nonVirtualOffset = vptr.base.getBaseOffset();
287-
baseValueTy = convertType(getContext().getTagDeclType(vptr.base.getBase()));
287+
baseValueTy =
288+
convertType(getContext().getCanonicalTagType(vptr.base.getBase()));
288289
}
289290

290291
// Apply the offsets.

0 commit comments

Comments
 (0)