mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[IR] Have AttrBuilder::clear clear TargetDepAttrs
.
Test case attached -- currently the parser smears the "foo bar" to all of the formal arguments. llvm-svn: 246812
This commit is contained in:
parent
a7d960ef99
commit
0ab88f9c4c
@ -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…
x
Reference in New Issue
Block a user