hans added a comment.

> I just saw @glandium's earlier comment:
>
>> Code built with older versions of LLVM (e.g. rust) and running with the 
>> updated runtime crash at startup with this change.
>
> This is the exact same issue we encountered. Because there is a profile 
> format change, it's expected to update both clang and rustc to use the same 
> version of llvm in order for it to work.

Thanks for figuring this out!

Would it be possible to somehow make profile format mismatches a linker error 
instead of a hard-to-debug runtime problem? For example could the 
instrumentation depend on some symbol in the runtime whose name includes a 
version number?

I think the ASan (and maybe other sanitizer) instrumentations do this.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138846/new/

https://reviews.llvm.org/D138846

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to