mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-27 13:40:30 +00:00
[IR] Have AttrBuilder::clear clear TargetDepAttrs
.
Test case attached -- currently the parser smears the "foo bar" to all of the formal arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246812 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
383054783d
commit
dc0eb17133
@ -1108,6 +1108,7 @@ AttrBuilder::AttrBuilder(AttributeSet AS, unsigned Index)
|
||||
|
||||
void AttrBuilder::clear() {
|
||||
Attrs.reset();
|
||||
TargetDepAttrs.clear();
|
||||
Alignment = StackAlignment = DerefBytes = DerefOrNullBytes = 0;
|
||||
}
|
||||
|
||||
|
6
test/Assembler/incorrect-tdep-attrs-parsing.ll
Normal file
6
test/Assembler/incorrect-tdep-attrs-parsing.ll
Normal file
@ -0,0 +1,6 @@
|
||||
; RUN: llvm-as < %s | llvm-dis | FileCheck %s
|
||||
|
||||
; CHECK: define i32 @f(i64 "foo bar", i64, i64, i64 "xyz") {
|
||||
define i32 @f(i64 "foo bar", i64, i64, i64 "xyz") {
|
||||
ret i32 41
|
||||
}
|
Loading…
Reference in New Issue
Block a user