diff options
author | Gabor Greif <ggreif@gmail.com> | 2010-07-07 09:29:07 +0000 |
---|---|---|
committer | Gabor Greif <ggreif@gmail.com> | 2010-07-07 09:29:07 +0000 |
commit | dc4f391773041c164536bf0ed334230142e49386 (patch) | |
tree | 9d113080a11f2134ae843c3b9075d69e5d50ff66 /include/llvm/Instructions.h | |
parent | 8246adc1f0e2d28374da3aeab864aee5ff03f3ff (diff) | |
download | llvm-dc4f391773041c164536bf0ed334230142e49386.tar.gz llvm-dc4f391773041c164536bf0ed334230142e49386.tar.bz2 llvm-dc4f391773041c164536bf0ed334230142e49386.tar.xz |
minor cosmetic changes that happened to sit in my tree
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Instructions.h')
-rw-r--r-- | include/llvm/Instructions.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/Instructions.h b/include/llvm/Instructions.h index 7129b6e14e..a18a713164 100644 --- a/include/llvm/Instructions.h +++ b/include/llvm/Instructions.h @@ -886,14 +886,14 @@ public: InputIterator ArgBegin, InputIterator ArgEnd, const Twine &NameStr = "", Instruction *InsertBefore = 0) { - return new((unsigned)(ArgEnd - ArgBegin + 1)) + return new(unsigned(ArgEnd - ArgBegin + 1)) CallInst(Func, ArgBegin, ArgEnd, NameStr, InsertBefore); } template<typename InputIterator> static CallInst *Create(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd, const Twine &NameStr, BasicBlock *InsertAtEnd) { - return new((unsigned)(ArgEnd - ArgBegin + 1)) + return new(unsigned(ArgEnd - ArgBegin + 1)) CallInst(Func, ArgBegin, ArgEnd, NameStr, InsertAtEnd); } static CallInst *Create(Value *F, Value *Actual, @@ -1116,7 +1116,7 @@ CallInst::CallInst(Value *Func, InputIterator ArgBegin, InputIterator ArgEnd, ->getElementType())->getReturnType(), Instruction::Call, OperandTraits<CallInst>::op_end(this) - (ArgEnd - ArgBegin + 1), - (unsigned)(ArgEnd - ArgBegin + 1), InsertBefore) { + unsigned(ArgEnd - ArgBegin + 1), InsertBefore) { init(Func, ArgBegin, ArgEnd, NameStr, typename std::iterator_traits<InputIterator>::iterator_category()); } |