aboutsummaryrefslogtreecommitdiff
path: root/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-30 05:01:46 +0000
committerChris Lattner <sabre@nondot.org>2008-01-30 05:01:46 +0000
commitdb6ed1786bf460e1143f67d14bf2d71ad9856f81 (patch)
tree7c9903e9ae54b6fcc486c495b72497f5f483e872 /CodeGen/CGExprAgg.cpp
parent5193b8a3e57c4f696161aeddfe8227c294c0a7fe (diff)
move some constructors out of line and fix indentation in ObjCAtThrowStmt::getSourceRange.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@46547 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'CodeGen/CGExprAgg.cpp')
-rw-r--r--CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/CodeGen/CGExprAgg.cpp b/CodeGen/CGExprAgg.cpp
index 3781407f98..d52e8b1a0e 100644
--- a/CodeGen/CGExprAgg.cpp
+++ b/CodeGen/CGExprAgg.cpp
@@ -225,7 +225,7 @@ void AggExprEmitter::VisitInitListExpr(InitListExpr *E) {
// Copy initializer elements.
bool AllConstElements = true;
unsigned i = 0;
- for (i = 0; i < NumInitElements; ++i) {
+ for (i = 0; i != NumInitElements; ++i) {
if (llvm::Constant *C =
dyn_cast<llvm::Constant>(CGF.EmitScalarExpr(E->getInit(i))))
ArrayElts.push_back(C);