SLPVectorizer: add support for vectorization of diamond shaped trees. We now perform...
[oota-llvm.git] / lib / IR / Use.cpp
index 0128adc3f776297addf313090a310c72b9ab94bb..1d343e8030944cbc5e5e78f78be773ecf2fd1e62 100644 (file)
@@ -11,7 +11,7 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/Value.h"
+#include "llvm/IR/Value.h"
 #include <new>
 
 namespace llvm {
@@ -139,7 +139,7 @@ User *Use::getUser() const {
   const UserRef *ref = reinterpret_cast<const UserRef*>(End);
   return ref->getInt()
     ? ref->getPointer()
-    : (User*)End;
+    : reinterpret_cast<User*>(const_cast<Use*>(End));
 }
 
 } // End llvm namespace