summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-10 11:26:52 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-10 11:26:52 +0000
commit1b2f72912fde45086bc2c5c00e78210661a419a5 (patch)
treef7d55fdb3ada301731d34028433c74f480d7c37e /include
parentd2a5a2ae2e45c7dbec84b9df6fe642b41ff5e4e8 (diff)
downloadllvm-1b2f72912fde45086bc2c5c00e78210661a419a5.tar.gz
llvm-1b2f72912fde45086bc2c5c00e78210661a419a5.tar.bz2
llvm-1b2f72912fde45086bc2c5c00e78210661a419a5.tar.xz
Prevent -W64-to-32-shortened warnings.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Instructions.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h
index b26eb3a403..f2afd79e6d 100644
--- a/include/llvm/Instructions.h
+++ b/include/llvm/Instructions.h
@@ -1087,7 +1087,7 @@ CallInst::CallInst(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd,
->getElementType())->getReturnType(),
Instruction::Call,
OperandTraits<CallInst>::op_end(this) - (ArgEnd - ArgBegin + 1),
- ArgEnd - ArgBegin + 1, InsertAtEnd) {
+ (unsigned)(ArgEnd - ArgBegin + 1), InsertAtEnd) {
init(Func, ArgBegin, ArgEnd, Name,
typename std::iterator_traits<InputIterator>::iterator_category());
}
@@ -1099,7 +1099,7 @@ CallInst::CallInst(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd,
->getElementType())->getReturnType(),
Instruction::Call,
OperandTraits<CallInst>::op_end(this) - (ArgEnd - ArgBegin + 1),
- ArgEnd - ArgBegin + 1, InsertBefore) {
+ (unsigned)(ArgEnd - ArgBegin + 1), InsertBefore) {
init(Func, ArgBegin, ArgEnd, Name,
typename std::iterator_traits<InputIterator>::iterator_category());
}