diff options
| author | Kaelyn Uhrain <rikka@google.com> | 2012-04-03 18:20:11 +0000 |
|---|---|---|
| committer | Kaelyn Uhrain <rikka@google.com> | 2012-04-03 18:20:11 +0000 |
| commit | f4657d5bd7df0a8da1e0743ddedbe3254852c7a9 (patch) | |
| tree | 53fe73755d71c15832043d85ef25514e3fe4e2e5 /llvm/lib/Transforms/Utils/DemoteRegToStack.cpp | |
| parent | b81e2b403cd40d4ea8236358c3bb3abf9302e31f (diff) | |
| download | bcm5719-llvm-f4657d5bd7df0a8da1e0743ddedbe3254852c7a9.tar.gz bcm5719-llvm-f4657d5bd7df0a8da1e0743ddedbe3254852c7a9.zip | |
Replace the workaround from r153445 with a proper fix.
Infinite recursion was happening when DiagnoseInvalidRedeclaration
called ActOnFunctionDeclarator to check if a typo correction works when
the correction was just to the nested-name-specifier because the wrong
DeclContext was being passed in. Unlike a number of functions
surrounding typo correction, the DeclContext passed in for a function is
the context of the function name after applying any nested name
specifiers, not the lexical DeclContext where the
function+nested-name-specifier appears.
llvm-svn: 153962
Diffstat (limited to 'llvm/lib/Transforms/Utils/DemoteRegToStack.cpp')
0 files changed, 0 insertions, 0 deletions

