Issue 53113
Summary ASAN seems to break struct debug info on windows
Labels new issue
Assignees
Reporter croepha
    Here is a simple program:
```
struct S { float a,b,c; };
int main () {
    int nomralvar = 3;
    S structvar = {};
    structvar.a = 1;
    structvar.b = 2;
    structvar.c = 4;
    nomralvar = 6;
}
```

if you compile with `clang-cl.exe -v /MD /fsanitize=address /Zi test.cpp /o build/test.debug.exe`

and if you step through it with a debugger, like MSVC/devenv then you can only inspect the variable `normalvar` and not `structvar`

If you however compile with `clang-cl.exe -v /MD /Zi test.cpp /o build/test.debug.exe` (without ASAN) then you can inspect both `normalvar` and `structvar`


_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to