mirror of
https://github.com/intel/llvm.git
synced 2026-01-28 01:04:49 +08:00
Fix think-o, attributes can't come *within* the type of the variable.
llvm-svn: 96099
This commit is contained in:
@@ -746,7 +746,7 @@ VtableBuilder::layoutVirtualMemberFunctions(BaseSubobject Base,
|
||||
// Check if this virtual member function overrides a method in a primary
|
||||
// base. If this is the case, and the return type doesn't require adjustment
|
||||
// then we can just use the member function from the primary base.
|
||||
if (const CXXMethodDecl ATTRIBUTE_UNUSED *OverriddenMD =
|
||||
if (const CXXMethodDecl *OverriddenMD ATTRIBUTE_UNUSED =
|
||||
OverridesMethodInPrimaryBase(MD, PrimaryBases)) {
|
||||
assert(!ReturnTypeConversionRequiresAdjustment(MD, OverriddenMD)
|
||||
&& "FIXME: Handle covariant thunks!");
|
||||
|
||||
Reference in New Issue
Block a user