Normal name lookup ignores any hidden declarations. When name lookup for builtin declarations fails, we just synthesize a new declaration at the point of use. With modules, this could lead to multiple declarations of the same builtin, if one came from a (hidden) submodule that was later made visible. Teach name lookup to always find builtin names, so we don't create these redundant declarations in the first place. llvm-svn: 178711
5 lines
61 B
C
5 lines
61 B
C
int getBos1(void) {
|
|
return __builtin_object_size(p, 0);
|
|
}
|
|
|