[LLVMdev] VC++ build broken

Chris Lattner sabre at nondot.org
Mon May 2 20:01:44 PDT 2005


On Mon, 2 May 2005, Jeff Cohen wrote:
> Yes, that will work.  I'll make the change.

While you're at it, please remove this line, which is dead:

   if (V2->isNullValue()) return 0;

Thanks,

-Chris

> Chris Lattner wrote:
>
>> On Mon, 2 May 2005, Jeff Cohen wrote:
>> 
>>> The recently added code:
>>> static Constant *Div(const ConstantClass *V1, const ConstantClass *V2) {
>>>   if (V2->isExactlyValue(0.0)) return ConstantClass::get(*Ty, INFINITY);
>>>   if (V2->isExactlyValue(-0.0)) return ConstantClass::get(*Ty, -INFINITY);
>>>   if (V2->isNullValue()) return 0;
>>>   BuiltinType R = (BuiltinType)V1->getValue() / 
>>> (BuiltinType)V2->getValue();
>>>   return ConstantClass::get(*Ty, R);
>>> }
>>> 
>>> does not compile with VC++.  The symbol INFINITY is undefined, nor is 
>>> there an equivalent I can find.
>> 
>> 
>> Can std::numeric_limits be used?
>> 
>> -Chris
>> 
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev
>

-Chris

-- 
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/




More information about the llvm-dev mailing list