[llvm-commits] CVS: llvm/lib/Target/CBackend/Writer.cpp

Reid Spencer reid at x10sys.com
Wed Dec 6 13:25:10 PST 2006


On Wed, 2006-12-06 at 13:20 -0800, Chris Lattner wrote:
> On Dec 6,lib/Target/CBackend/Writer.cpp
> > diff -u llvm/lib/Target/CBackend/Writer.cpp:1.290 llvm/lib/Target/ 
> > CBackend/Writer.cpp:1.291
> > --- llvm/lib/Target/CBackend/Writer.cpp:1.290	Thu Nov 30 18:25:12 2006
> > +++ llvm/lib/Target/CBackend/Writer.cpp	Wed Dec  6 14:45:15 2006
> > @@ -753,7 +753,7 @@
> >      break;
> >
> >    case Type::LongTyID:
> > -    if (cast<ConstantInt>(CPV)->isMinValue())
> > +    if (cast<ConstantInt>(CPV)->isMinValue(CPV->getType()->isSigned 
> > ()))
> >        Out << "(/*INT64_MIN*/(-9223372036854775807LL)-1)";
> >      else
> >        Out << cast<ConstantInt>(CPV)->getSExtValue() << "ll";
> 
> This should always pass true.

Right.
> 
> -Chris
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20061206/409724c1/attachment.sig>


More information about the llvm-commits mailing list