projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
847d165
)
Remove assert that's too restrictive.
author
Bill Wendling
<isanbard@gmail.com>
Wed, 3 Oct 2012 18:08:57 +0000
(18:08 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Wed, 3 Oct 2012 18:08:57 +0000
(18:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165134
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Attributes.h
patch
|
blob
|
history
diff --git
a/include/llvm/Attributes.h
b/include/llvm/Attributes.h
index c9589603f9a52083888a7e922194ead84a837131..381aedf9570c68616be3e9c67c83226079ed400e 100644
(file)
--- a/
include/llvm/Attributes.h
+++ b/
include/llvm/Attributes.h
@@
-518,7
+518,10
@@
public:
/// getParamAttributes - The attributes for the specified index are
/// returned.
Attributes getParamAttributes(unsigned Idx) const {
- assert (Idx && Idx != ~0U && "Invalid parameter index!");
+ if (Idx == 0)
+ return getRetAttributes();
+ if (Idx == ~0U)
+ return getFnAttributes();
return getAttributes(Idx);
}