Skip to content

Commit ba25b61

Browse files
committed
Remove unnecessary check
1 parent 5a753b2 commit ba25b61

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/IRGen/GenClangDecl.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,6 @@ clang::Decl *getDeclWithExecutableCode(clang::Decl *decl) {
6464
if (initializingDecl) {
6565
return initializingDecl;
6666
}
67-
} else if (auto rd = dyn_cast<clang::CXXRecordDecl>(decl)) {
68-
if(rd->hasDefinition()) {
69-
return rd->getDefinition();
70-
}
7167
}
7268
return nullptr;
7369
}

0 commit comments

Comments
 (0)