Do not allow attributes beyond a function's last
parameter, even if it is a varargs function. Do allow attributes on the varargs part of a call, but not beyond the last argument. Only allow selected attributes to be on the varargs part of a call (currently only 'byval' is allowed). The reasoning here is that most attributes, eg inreg, simply make no sense here. llvm-svn: 45887
Showing
- llvm/include/llvm/ParameterAttributes.h 3 additions, 0 deletionsllvm/include/llvm/ParameterAttributes.h
- llvm/lib/VMCore/Verifier.cpp 25 additions, 7 deletionsllvm/lib/VMCore/Verifier.cpp
- llvm/test/Verifier/2008-01-11-VarargAttrs.ll 10 additions, 0 deletionsllvm/test/Verifier/2008-01-11-VarargAttrs.ll
Loading
Please register or sign in to comment