[PATCH] D31508: [ThinLTO] Set up lto::Config properly for codegen in ThinLTO backends

Davide Italiano via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 1 14:17:27 PDT 2017


davide added a comment.

clang -cc1 crashes if an invalid reloc model is passed (via `-mreloc-model=`), see https://bugs.llvm.org/show_bug.cgi?id=32490
I'm not sure if the bug was already there or this refactoring exposed it. Either way, I'm going to submit a patch to get this fixed.
Ideally, we shouldn't keep two codepath in sync (as we do already for `getCodeModel()`, but that's the status quo). I may decide to refactor the whole handling to avoid this sync issue, but that won't be today.


Repository:
  rL LLVM

https://reviews.llvm.org/D31508





More information about the cfe-commits mailing list