aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Instructions.h
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-05-07 02:44:04 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-05-07 02:44:04 +0000
commit39cef6025938dbe428e01eb7c273b07cbdf3e8ab (patch)
tree9a7eec982a70292ae8bc7ffaeae58d4234654336 /include/llvm/Instructions.h
parent7939b7817088c2939c4ff434af1ef9f4f8505eba (diff)
downloadexternal_llvm-39cef6025938dbe428e01eb7c273b07cbdf3e8ab.tar.gz
external_llvm-39cef6025938dbe428e01eb7c273b07cbdf3e8ab.tar.bz2
external_llvm-39cef6025938dbe428e01eb7c273b07cbdf3e8ab.zip
Silence VC++ warnings about unsafe mixing of ints and bools with the | operator.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21758 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r--include/llvm/Instructions.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index 696466858d..264e8b64b9 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -505,7 +505,7 @@ public:
bool isTailCall() const { return SubclassData & 1; }
void setTailCall(bool isTailCall = true) {
- SubclassData = (SubclassData & ~1) | isTailCall;
+ SubclassData = (SubclassData & ~1) | unsigned(isTailCall);
}
/// getCallingConv/setCallingConv - Get or set the calling convention of this