[LLVMdev] VC++ build broken
Jeff Cohen
jeffc at jolt-lang.org
Mon May 2 19:54:57 PDT 2005
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.
More information about the llvm-dev
mailing list