We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27bb7d5 commit cc638daCopy full SHA for cc638da
clang/lib/CIR/CodeGen/CIRGenModule.cpp
@@ -1563,7 +1563,7 @@ cir::FuncOp CIRGenModule::getOrCreateCIRFunction(
1563
} else if (getLangOpts().CPlusPlus && d) {
1564
// Look for a declaration that's lexically in a record.
1565
for (const auto *fd = cast<FunctionDecl>(d)->getMostRecentDecl(); fd;
1566
- fd = fd->getPreviousDecl()) {
+ fd = fd->getPreviousDecl()) {
1567
if (isa<CXXRecordDecl>(fd->getLexicalDeclContext())) {
1568
if (fd->doesThisDeclarationHaveABody()) {
1569
addDeferredDeclToEmit(gd.getWithDecl(fd));
0 commit comments