gcc was diagnosing a memcpy in this function with "memcpy writing to an
object of type 'struct llvm::GenericValue' with no trivial
copy-assignment". After closer examination, it became clear that the
pointer in the function *never* refers to a GenericValue object, and all
callers cast some other pointer (typically void*) to GenericValue*.
There doesn't seem to be any reason for such a convoluted solution so I
just change the function to accept a void* instead, which has the nice
side-effect of fixing the warning as well.
Details
Details
- Reviewers
lhames
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 30934 Build 30933: arc lint + arc unit