Fix some null checks to actually test the part that needs checking.
[oota-llvm.git] / include / llvm / Analysis / ScalarEvolution.h
index 4aac284ee006775b3a80435fc369541281dcbd73..27d7e04a3e25cc042ce2624b3ea9d893f9b6aa73 100644 (file)
@@ -22,6 +22,7 @@
 #define LLVM_ANALYSIS_SCALAREVOLUTION_H
 
 #include "llvm/Pass.h"
+#include "llvm/Support/DataTypes.h"
 #include "llvm/Support/Streams.h"
 #include <set>
 
@@ -85,6 +86,10 @@ namespace llvm {
     ///
     virtual const Type *getType() const = 0;
 
+    /// getBitWidth - Get the bit width of the type, if it has one, 0 otherwise.
+    /// 
+    uint32_t getBitWidth() const;
+
     /// replaceSymbolicValuesWithConcrete - If this SCEV internally references
     /// the symbolic value "Sym", construct and return a new SCEV that produces
     /// the same value, but which uses the concrete value Conc instead of the