If a function argument that is passed by reference is remapped to an alloca in the calling function, eliminate the (now) superfluous DW_OP_deref from the DIExpression.
Depends on http://reviews.llvm.org/D6986.
Paths
| Differential D7016
Debug Info: Handle by-reference arguments correctly during inlining. AbandonedPublic Authored by aprantl on Jan 16 2015, 9:10 AM.
Details Summary If a function argument that is passed by reference is remapped to an alloca in the calling function, eliminate the (now) superfluous DW_OP_deref from the DIExpression. Depends on http://reviews.llvm.org/D6986.
Diff Detail Event Timeline
Comment Actions I just verified that this is no longer applicable as there is no longer a DW_OP_deref in the inlined function.
Revision Contents
Diff 18304 lib/Transforms/Utils/CloneFunction.cpp
test/DebugInfo/inline-indirect-arg.ll
|
Does createExpression need a DIBuilder? Does it just need access to a Module? (perhaps it could just be a standalone non-member function that takes a Module?)