It's cheaper to do
```
if (!(dc = dyn_cast<clang::NamespaceDecl>(D)) {
  dc = dyn_cast<clang::RecordDecl>(D);
}