aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorVolodymyr Sapsai <vsapsai@apple.com>2025-04-16 10:14:05 -0700
committerGitHub <noreply@github.com>2025-04-16 10:14:05 -0700
commit81739c39db11b7f9a4f3528c1c66b552e57b47e4 (patch)
treeb8acd7bf7812595b7a18db5879b348077eab0d19 /llvm/lib/Bitcode
parent52e0337ea34142f55c427493e9ca2be5fce2dd38 (diff)
downloadllvm-81739c39db11b7f9a4f3528c1c66b552e57b47e4.zip
llvm-81739c39db11b7f9a4f3528c1c66b552e57b47e4.tar.gz
llvm-81739c39db11b7f9a4f3528c1c66b552e57b47e4.tar.bz2
[Modules] Fix an identifier hiding a function-like macro definition. (#135471)
We emit a macro definition only in a module defining it. But it means that if another module has an identifier with the same name as the macro, the users of such module won't be able to use the macro anymore. Fix by storing that an identifier has a macro definition that's not in a current module (`MacroDirectivesOffset == 0`). This way `IdentifierLookupVisitor` knows not to stop at the first module with an identifier but to keep checking included modules for the actual macro definition. Fixes issue #32040. rdar://30258278
Diffstat (limited to 'llvm/lib/Bitcode')
0 files changed, 0 insertions, 0 deletions