Fix #pragma redefine_extname when there is a local variable of the same name. The...
authorAaron Ballman <aaron@aaronballman.com>
Thu, 25 Jun 2015 15:37:16 +0000 (15:37 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Thu, 25 Jun 2015 15:37:16 +0000 (15:37 +0000)
commit9ec96a2f3fecd4872c0d002e163e424638e2ff67
tree5121df7d36980def9c9cc1d3d1e8a8b4c167de52
parentecc728bde9a75d1e67e0693bc21afbeb564fcf27
Fix #pragma redefine_extname when there is a local variable of the same name. The local should not be renamed, only the externally-available declaration should be.

Patch by Andrey Bokhanko!

llvm-svn: 240653
clang/lib/Sema/SemaDecl.cpp
clang/test/CodeGen/redefine_extname.c
clang/test/CodeGenCXX/redefine_extname.cpp