summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-04-04 00:55:25 +0000
committerTed Kremenek <kremenek@apple.com>2012-04-04 00:55:25 +0000
commit669669f8d370c66750bb3768adde165f05d21c24 (patch)
tree2b407ad3dc97afdf7e271e76f7ffa36243246b25 /clang
parente69340c42c79dbc57dbc9ad8d0b67db37821a860 (diff)
downloadbcm5719-llvm-669669f8d370c66750bb3768adde165f05d21c24.tar.gz
bcm5719-llvm-669669f8d370c66750bb3768adde165f05d21c24.zip
Silence dead store warning, and fix indentation.
llvm-svn: 153986
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/CodeGen/CGObjCGNU.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp
index 6f3e5dc574f..54c4e655c21 100644
--- a/clang/lib/CodeGen/CGObjCGNU.cpp
+++ b/clang/lib/CodeGen/CGObjCGNU.cpp
@@ -2121,15 +2121,16 @@ void CGObjCGNU::GenerateClass(const ObjCImplementationDecl *OID) {
// Get the existing variable, if one exists.
llvm::GlobalVariable *offset = TheModule.getNamedGlobal(Name);
if (offset) {
- offset->setInitializer(offsetValue);
- // If this is the real definition, change its linkage type so that
- // different modules will use this one, rather than their private
- // copy.
- offset->setLinkage(llvm::GlobalValue::ExternalLinkage);
+ offset->setInitializer(offsetValue);
+ // If this is the real definition, change its linkage type so that
+ // different modules will use this one, rather than their private
+ // copy.
+ offset->setLinkage(llvm::GlobalValue::ExternalLinkage);
} else {
- // Add a new alias if there isn't one already.
- offset = new llvm::GlobalVariable(TheModule, offsetValue->getType(),
- false, llvm::GlobalValue::ExternalLinkage, offsetValue, Name);
+ // Add a new alias if there isn't one already.
+ offset = new llvm::GlobalVariable(TheModule, offsetValue->getType(),
+ false, llvm::GlobalValue::ExternalLinkage, offsetValue, Name);
+ (void) offset; // Silence dead store warning.
}
++ivarIndex;
}
OpenPOWER on IntegriCloud