We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa4685c commit 9ac7388Copy full SHA for 9ac7388
llvm/include/llvm/IR/InstrTypes.h
@@ -1729,13 +1729,13 @@ class CallBase : public Instruction {
1729
/// Extract the byval type for a call or parameter.
1730
Type *getParamByValType(unsigned ArgNo) const {
1731
Type *Ty = Attrs.getParamByValType(ArgNo);
1732
- return Ty;
+ return Ty ? Ty : getArgOperand(ArgNo)->getType()->getPointerElementType();
1733
}
1734
1735
/// Extract the preallocated type for a call or parameter.
1736
Type *getParamPreallocatedType(unsigned ArgNo) const {
1737
Type *Ty = Attrs.getParamPreallocatedType(ArgNo);
1738
1739
1740
1741
/// Extract the number of dereferenceable bytes for a call or
0 commit comments