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 7776c29f1d..56ed5c26f0 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 |