Upgrade ConstantFP's negative zero and infinity getters to handle vector types.
[oota-llvm.git] / include / llvm / IR / Constants.h
index 3aedb00cf6f70cb11134d5e4d32a932feb537c7e..1acf5b6cc8342433fccca7ea0afbda07330a9f59 100644 (file)
@@ -255,8 +255,8 @@ public:
   static Constant *get(Type* Ty, double V);
   static Constant *get(Type* Ty, StringRef Str);
   static ConstantFP *get(LLVMContext &Context, const APFloat &V);
-  static ConstantFP *getNegativeZero(Type* Ty);
-  static ConstantFP *getInfinity(Type *Ty, bool Negative = false);
+  static Constant *getNegativeZero(Type *Ty);
+  static Constant *getInfinity(Type *Ty, bool Negative = false);
 
   /// isValueValidForType - return true if Ty is big enough to represent V.
   static bool isValueValidForType(Type *Ty, const APFloat &V);