diff options
| author | Chris Lattner <sabre@nondot.org> | 2009-04-22 00:54:41 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2009-04-22 00:54:41 +0000 |
| commit | 934074cd5f4f3537424c9b8f7e72cad05531464b (patch) | |
| tree | 788115a7031fc57c5ee365dfd02e7bbdbe0f5028 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 3ddc876758535a5d1ce01a41a00812f6203ab7ce (diff) | |
| download | bcm5719-llvm-934074cd5f4f3537424c9b8f7e72cad05531464b.tar.gz bcm5719-llvm-934074cd5f4f3537424c9b8f7e72cad05531464b.zip | |
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) ;
^
llvm-svn: 69760
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions

