We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 868317b commit 738abfdCopy full SHA for 738abfd
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 ? Ty : getArgOperand(ArgNo)->getType()->getPointerElementType();
+ return Ty;
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