The following code triggers a fatal error in the compiler instrumentation of ASan on Darwin because we place the attribute into llvm.metadata section, which does not have the proper MachO section name. void foo() __attribute__((annotate("custom"))); void foo() {;} This commit reorders the checks so that we skip everything in llvm.metadata first. It also removes the hard failure in case the section name does not parse. That check will be done lower in the compilation pipeline anyway.
Details
Details
- Reviewers
samsonov kubamracek
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Good catch. This looks like a regression caused by my commit in r223513 (http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20141201/247689.html).
I'm ok with the patch, but Alexey or Alexander should see it as well.