Skip to content

Commit c2bd5f0

Browse files
committed
Replaced a use of auto
1 parent 844b07e commit c2bd5f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/CIR/CodeGen/CIRGenClass.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void CIRGenFunction::emitCXXConstructorCall(
103103
const CXXConstructorDecl *d, CXXCtorType type, bool forVirtualBase,
104104
bool delegating, Address thisAddr, CallArgList &args, SourceLocation loc) {
105105

106-
const auto *cd = d->getParent();
106+
const CXXRecordDecl *crd = d->getParent();
107107

108108
// If this is a call to a trivial default constructor:
109109
// In LLVM: do nothing.
@@ -133,7 +133,7 @@ void CIRGenFunction::emitCXXConstructorCall(
133133
cir::CIRCallOpInterface c;
134134
emitCall(info, callee, ReturnValueSlot(), args, &c, getLoc(loc));
135135

136-
if (cgm.getCodeGenOpts().OptimizationLevel != 0 && !cd->isDynamicClass() &&
136+
if (cgm.getCodeGenOpts().OptimizationLevel != 0 && !crd->isDynamicClass() &&
137137
type != Ctor_Base && cgm.getCodeGenOpts().StrictVTablePointers)
138138
cgm.errorNYI(d->getSourceRange(), "vtable assumption loads");
139139
}

0 commit comments

Comments
 (0)