[PATCH] D52322: Pass code-model through Module IR to LTO which will use is

Teresa Johnson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 21 10:44:11 PDT 2018


tejohnson accepted this revision.
tejohnson added a comment.
This revision is now accepted and ready to land.

LGTM with a minor change suggested.



================
Comment at: lib/LTO/LTOBackend.cpp:145
+  else if (M.getCodeModel())
+    CodeModel = M.getCodeModel();
+
----------------
No need to do this conditionally - just unconditionally set CodeModel to M.getCodeModel() in the else since it should get None if not set on the Module.


https://reviews.llvm.org/D52322





More information about the llvm-commits mailing list