diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-09-03 22:27:42 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-09-03 22:27:42 +0000 |
commit | 88d0fdeb004108bf329673e0d5a2b76d8e64d682 (patch) | |
tree | 4aa9368e3a7fc5592ec176b1b115af8eabef25d4 /llvm/lib/IR/Attributes.cpp | |
parent | 55eed7efcd7aea687f09fb4ab830b99cdaeee33d (diff) | |
download | bcm5719-llvm-88d0fdeb004108bf329673e0d5a2b76d8e64d682.tar.gz bcm5719-llvm-88d0fdeb004108bf329673e0d5a2b76d8e64d682.zip |
[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
Diffstat (limited to 'llvm/lib/IR/Attributes.cpp')
-rw-r--r-- | llvm/lib/IR/Attributes.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index d909f7b880c..2586cb54c3e 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -1108,6 +1108,7 @@ AttrBuilder::AttrBuilder(AttributeSet AS, unsigned Index) void AttrBuilder::clear() { Attrs.reset(); + TargetDepAttrs.clear(); Alignment = StackAlignment = DerefBytes = DerefOrNullBytes = 0; } |