summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:23:54 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2009-02-17 20:23:54 +0000
commit4b4f67ac0acfcc39feec3519e1c3f52ba6a0f6b9 (patch)
treef10339cfea109c3922d7deaf307d49a51ad2f543 /clang/lib/CodeGen/ModuleBuilder.cpp
parent13c9cc8b3702a1bcb5675a1b0e6e963838c2c2de (diff)
downloadbcm5719-llvm-4b4f67ac0acfcc39feec3519e1c3f52ba6a0f6b9.tar.gz
bcm5719-llvm-4b4f67ac0acfcc39feec3519e1c3f52ba6a0f6b9.zip
Remove some redundant Decl -> Decl castings.
llvm-svn: 64804
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
-rw-r--r--clang/lib/CodeGen/ModuleBuilder.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/ModuleBuilder.cpp b/clang/lib/CodeGen/ModuleBuilder.cpp
index 9afdc0368c4..3e3f5e463f5 100644
--- a/clang/lib/CodeGen/ModuleBuilder.cpp
+++ b/clang/lib/CodeGen/ModuleBuilder.cpp
@@ -68,12 +68,8 @@ namespace {
virtual void HandleTopLevelDecl(Decl *D) {
// Make sure to emit all elements of a Decl.
- if (Decl *SD = dyn_cast<Decl>(D)) {
- for (; SD; SD = SD->getNextDeclarator())
- Builder->EmitTopLevelDecl(SD);
- } else {
+ for (; D; D = D->getNextDeclarator())
Builder->EmitTopLevelDecl(D);
- }
}
/// HandleTagDeclDefinition - This callback is invoked each time a TagDecl
OpenPOWER on IntegriCloud