[LLVMdev] VC++ build broken
Chris Lattner
sabre at nondot.org
Mon May 2 19:56:09 PDT 2005
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
--
http://nondot.org/sabre/
http://llvm.cs.uiuc.edu/
More information about the llvm-dev
mailing list