This is the missing bit to drive thread and memory sanitizers through clang using the new PassManager.
Details
Details
Diff Detail
Diff Detail
- Build Status
Buildable 26964 Build 26963: arc lint + arc unit
Event Timeline
Comment Actions
LGTM
clang/lib/CodeGen/BackendUtil.cpp | ||
---|---|---|
1016–1017 | Add a FIXME about ASan? Actually, if you don't mind, could you add code to detect ASan (and any other sanitizers you see in the parallel code) and emit a fatal error and put the FIXME there? I really should have done this to begin with. We should never *ignore* the flag. Follow-up patch is probably better at that point, and include Richard or Reid on it to make sure its an acceptable way to handle the error. I don't think we need to produce a full fledged diagnostic here -- this isn't related to the code at all, and this is essentially a "not implemented yet" as opposed to a useful thing for users. |
Add a FIXME about ASan?
Actually, if you don't mind, could you add code to detect ASan (and any other sanitizers you see in the parallel code) and emit a fatal error and put the FIXME there? I really should have done this to begin with. We should never *ignore* the flag.
Follow-up patch is probably better at that point, and include Richard or Reid on it to make sure its an acceptable way to handle the error.
I don't think we need to produce a full fledged diagnostic here -- this isn't related to the code at all, and this is essentially a "not implemented yet" as opposed to a useful thing for users.