summaryrefslogtreecommitdiffstats
path: root/llvm/examples/ParallelJIT/ParallelJIT.cpp
diff options
context:
space:
mode:
authorSteve Naroff <snaroff@apple.com>2007-09-12 14:07:44 +0000
committerSteve Naroff <snaroff@apple.com>2007-09-12 14:07:44 +0000
commit6109140b00acb6b245c7aa545da4d13a058e33d4 (patch)
tree0c0ba0409c8342d8c5cb5d645132d4ea32bfcd13 /llvm/examples/ParallelJIT/ParallelJIT.cpp
parent100410af133f319cfcea9bffb1f341d9b362aa44 (diff)
downloadbcm5719-llvm-6109140b00acb6b245c7aa545da4d13a058e33d4.tar.gz
bcm5719-llvm-6109140b00acb6b245c7aa545da4d13a058e33d4.zip
Fix the following bug submitted by Ted Kremenek:
void func() { int xx = xx; // incorrectly diagnosed 'xx' as an undeclared identifier. } This smallish bug resulted in a largish fix. Here are some highlights: - Needed to make sure ParseDeclarator is called *before* parsing any initializer. Removed the "Init" argument to ParseDeclarator. - Added AddInitializerToDecl() to the Action & Sema classes. In Sema, this hook is responsible for validating the initializer and installing it into the respective decl. - Moved several semantic checks from ParseDeclarator() to FinalizeDeclaratorGroup(). Previously, this hook was only responsible for reversing a list. Now it plays a much larger semantic role. All of the above changes ended up simplifying ParseDeclarator(), which is goodness... llvm-svn: 41877
Diffstat (limited to 'llvm/examples/ParallelJIT/ParallelJIT.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud