aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-20 21:31:08 +0000
committerChris Lattner <sabre@nondot.org>2007-08-20 21:31:08 +0000
commit9cf8e5d092a0ef1c04d9630e537bb1357393ffb1 (patch)
tree83b01904d9451d1972a5926b65eb80c39fb68506 /include/llvm/Function.h
parent8568122b41340e9c3bfac47f3714db4241196fbd (diff)
downloadexternal_llvm-9cf8e5d092a0ef1c04d9630e537bb1357393ffb1.zip
external_llvm-9cf8e5d092a0ef1c04d9630e537bb1357393ffb1.tar.gz
external_llvm-9cf8e5d092a0ef1c04d9630e537bb1357393ffb1.tar.bz2
clarify precedence, no functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@41199 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 7776c29..56ed5c2 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -138,7 +138,7 @@ public:
/// calling conventions are defined in CallingConv.h.
unsigned getCallingConv() const { return SubclassData >> 1; }
void setCallingConv(unsigned CC) {
- SubclassData = (SubclassData & 1) | CC << 1;
+ SubclassData = (SubclassData & 1) | (CC << 1);
}
/// Obtains a constant pointer to the ParamAttrsList object which holds the