Add a missing assertion, the null register has no register units.
[oota-llvm.git] / include / llvm / Instruction.h
index 2c1d41c705b92b1a100f2b030353e47800a93c16..595ad179e08cb07783b22aa899a35be9a54ba679 100644 (file)
 #ifndef LLVM_INSTRUCTION_H
 #define LLVM_INSTRUCTION_H
 
-#include "llvm/User.h"
 #include "llvm/ADT/ilist_node.h"
 #include "llvm/Support/DebugLoc.h"
+#include "llvm/User.h"
 
 namespace llvm {
 
-struct FastMathFlags;
+class FastMathFlags;
 class LLVMContext;
 class MDNode;
 
@@ -227,6 +227,9 @@ public:
   /// these flats.
   FastMathFlags getFastMathFlags() const;
 
+  /// Copy I's fast-math flags
+  void copyFastMathFlags(const Instruction *I);
+
 private:
   /// hasMetadataHashEntry - Return true if we have an entry in the on-the-side
   /// metadata hash.