[LLVMdev] VC++ build broken

Jeff Cohen jeffc at jolt-lang.org
Mon May 2 20:00:19 PDT 2005


Yes, that will work.  I'll make the change.

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
>




More information about the llvm-dev mailing list