aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-12-12 17:17:53 +0000
committerZachary Turner <zturner@google.com>2018-12-12 17:17:53 +0000
commit6753d2d1803b89cfe1f86631a79c4c435c04af8d (patch)
tree77edc8563191c6dabaa9c8ed486b38e9b3ff15e0 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
parent7da5a08e1a50ca5da1a35a4fa83673bf96f37d3c (diff)
downloadllvm-6753d2d1803b89cfe1f86631a79c4c435c04af8d.zip
llvm-6753d2d1803b89cfe1f86631a79c4c435c04af8d.tar.gz
llvm-6753d2d1803b89cfe1f86631a79c4c435c04af8d.tar.bz2
[ast] CreateParameterDeclaration should use an appropriate DeclContext.
Previously CreateParameterDeclaration was always using the translation unit DeclContext. We would later go and add parameters to the FunctionDecl, but internally clang makes a copy when you do this, and we'd end up with ParmVarDecl's at the global scope as well as in the function scope. This fixes the issue. It's hard to say whether this will introduce a behavioral change in name lookup, but I know there have been several hacks introduced in previous years to deal with collisions between various types of variables, so there's a chance that this patch could obviate one of those hacks. Differential Revision: https://reviews.llvm.org/D55571 llvm-svn: 348941
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions