commit | 4d00f2a5a9b670cd0d67d640a42dbf7b9f342c59 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Apr 22 00:54:41 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Apr 22 00:54:41 2009 +0000 |
tree | 6f36cd1f6ba7f77173e77ce1d7f3de98f32ad24a | |
parent | ba48d05c9c43dca8efa49d70ad3331fdcd6e2b3a [diff] |
Fix a problem with objc foreach loop. It turns out that objc mode changes for scoping to match C99 even when in C89 mode. This patch fixes this (eliminating a "redefinition of thisKey" error), and also prevents non-sensical diagnostics in -pedantic mode like this: t.m:7:8: warning: variable declaration in for loop is a C99-specific feature for (id thisKey in keys) ; ^ git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69760 91177308-0d34-0410-b5e6-96231b3b80d8