[cfe-dev] Incorrect aliasing between static locals and static globals
Chris Lattner
clattner at apple.com
Tue Feb 5 20:54:39 PST 2008
Fixed, thanks!
-Chris
On Feb 5, 2008, at 12:24 AM, Eli Friedman wrote:
> Testcase:
> static int a() {
> static int b = 0;
> return b;
> }
>
> static int b;
>
> int c() {
> b = 10;
> return a();
> }
>
> clang -emit-llvm puts both b's into the same global, which is wrong.
>
> -Eli
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
More information about the cfe-dev
mailing list