"I got annoyed at the compiler warnings from ConstantInt::get(Ty, -1,
authorChris Lattner <sabre@nondot.org>
Fri, 24 Apr 2009 05:30:14 +0000 (05:30 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 24 Apr 2009 05:30:14 +0000 (05:30 +0000)
commitf3b0aac1902d6e01ed9a633f4a93c26317b43835
tree4ed9c157cdca2d8727cbd7171e89b85caebbc02f
parentb706d29f9c5ed3ed9acc82f7ab46205ba56b92dc
"I got annoyed at the compiler warnings from ConstantInt::get(Ty, -1,
true), and casts make me nervous and are verbose anyway, so here's a
ConstantInt::getSigned(Ty, int64_t) method. Just overloading
ConstantInt::get() to take an int64_t too would cause ambiguous
overload errors."

Patch by Jeffrey Yasskin!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69958 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constants.h
unittests/VMCore/ConstantsTest.cpp