diff options
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h index b800909423..7a39f92282 100644 --- a/include/llvm/Function.h +++ b/include/llvm/Function.h @@ -152,7 +152,7 @@ public: /// hasNote - Return true if this function has given note. bool hasNote(Attributes N) const { // Notes are stored at ~0 index in parameter attribute list - return (!isDeclaration() && paramHasAttr(~0, N)); + return (paramHasAttr(~0, N)); } /// setNotes - Set notes for this function |