mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
929097793e
Continuing on from D105780, this should be the last major bit of attribute cleanup. Currently, LLParser implements attribute parsing for functions, parameters and returns separately, enumerating all supported (and unsupported) attributes each time. This patch extracts the common parsing logic, and performs a check afterwards whether the attribute is valid in the given position. Parameters and returns are handled together, while function attributes need slightly different logic to support attribute groups. Differential Revision: https://reviews.llvm.org/D105938
5 lines
149 B
LLVM
5 lines
149 B
LLVM
; RUN: not llvm-as -o /dev/null %s 2>&1 | FileCheck %s
|
|
|
|
; CHECK: error: this attribute does not apply to return values
|
|
declare safestack void @foo()
|