[all-commits] [llvm/llvm-project] 30bbfd: Improve error messages for attributes in the wrong...
nlewycky via All-commits
all-commits at lists.llvm.org
Thu Apr 29 01:44:41 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 30bbfda01fb6c6c56c55c6729348d9df7f68ac31
https://github.com/llvm/llvm-project/commit/30bbfda01fb6c6c56c55c6729348d9df7f68ac31
Author: Nick Lewycky <nicholas at mxc.ca>
Date: 2021-04-29 (Thu, 29 Apr 2021)
Changed paths:
M llvm/lib/IR/Attributes.cpp
M llvm/lib/IR/Verifier.cpp
M llvm/unittests/IR/AttributesTest.cpp
Log Message:
-----------
Improve error messages for attributes in the wrong context.
verifyFunctionAttrs has a comment that the value V is printed in error messages. The recently added errors for attributes didn't print V. Make them print V.
Change the stringification of AttributeList. Firstly they started with 'PAL[' which stood for ParamAttrsList. Change that to 'AttributeList[' matching its current name AttributeList. Print out semantic meaning of the index instead of the raw index value (i.e. 'return', 'function' or 'arg(n)').
Differential revision: https://reviews.llvm.org/D101484
More information about the All-commits
mailing list