When using byval, the data is effectively copied as part of the call
anyway, so we aren't actually passing the pointer and thus there is no
reason to issue a warning.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Thanks for the comments!
lib/Analysis/Lint.cpp | ||
---|---|---|
275 | I could probably change it but I'm hesitant to do it since BI is also used in "AI != BI" below to skip over when "OtherArg == Arg" and I don't want to mess up anything just to do some kind of unrelated refactoring. |
AttributeList is a lightweight pointer wrapper that is typically passed by value. No need for const & here.