summaryrefslogtreecommitdiff
path: root/include/llvm/Attributes.h
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2009-06-11 08:11:03 +0000
committerDuncan Sands <baldrick@free.fr>2009-06-11 08:11:03 +0000
commitd6de30ceea69ee9ce6dded4bb3ae5881861cb090 (patch)
tree3b26e7c0c31d5d67d3d78284871029ccec5bfff3 /include/llvm/Attributes.h
parent861d20aab446cce039e5e142091735d99fb426ef (diff)
downloadllvm-d6de30ceea69ee9ce6dded4bb3ae5881861cb090.tar.gz
llvm-d6de30ceea69ee9ce6dded4bb3ae5881861cb090.tar.bz2
llvm-d6de30ceea69ee9ce6dded4bb3ae5881861cb090.tar.xz
Cosmetic changes to parameter attribute verification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73188 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Attributes.h')
-rw-r--r--include/llvm/Attributes.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h
index a594e3223d..134e350202 100644
--- a/include/llvm/Attributes.h
+++ b/include/llvm/Attributes.h
@@ -61,7 +61,8 @@ const Attributes NoImplicitFloat = 1<<23; /// disable implicit floating point
/// @brief Attributes that only apply to function parameters.
const Attributes ParameterOnly = ByVal | Nest | StructRet | NoCapture;
-/// @brief Attributes that only apply to function.
+/// @brief Attributes that may be applied to the function itself. These cannot
+/// be used on return values or function parameters.
const Attributes FunctionOnly = NoReturn | NoUnwind | ReadNone | ReadOnly |
NoInline | AlwaysInline | OptimizeForSize | StackProtect | StackProtectReq |
NoRedZone | NoImplicitFloat;
@@ -186,7 +187,7 @@ public:
/// getFnAttributes - The function attributes are returned.
Attributes getFnAttributes() const {
- return getAttributes(~0);
+ return getAttributes(~0U);
}
/// paramHasAttr - Return true if the specified parameter index has the