This change is part of a series of commits dedicated to have a single
DataLayout during compilation by using always the one owned by the
module.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
One inline comment then LGTM.
Thanks!
-eric
lib/CodeGen/CodeGenPrepare.cpp | ||
---|---|---|
314 | I think since you've always got a Function here you don't need to explicitly null out the DataLayout member and just set it unconditionally at the beginning of runOnFunction (or if you feel strongly it should probably happen for all of the class members). |
I think since you've always got a Function here you don't need to explicitly null out the DataLayout member and just set it unconditionally at the beginning of runOnFunction (or if you feel strongly it should probably happen for all of the class members).