Don't try to create a mask when we don't need one. Fixes a crash.
[oota-llvm.git] / lib / Analysis / IntervalPartition.cpp
index adb6e9df24fefd8cd8190c8f299141ef8e684190..cb8a85da552a39d93ab9ca777e75cc113f923def 100644 (file)
@@ -91,7 +91,7 @@ bool IntervalPartition::runOnFunction(Function &F) {
 // distinguish it from a copy constructor.  Always pass in false for now.
 //
 IntervalPartition::IntervalPartition(IntervalPartition &IP, bool)
-  : FunctionPass((intptr_t) &ID) {
+  : FunctionPass(&ID) {
   assert(IP.getRootInterval() && "Cannot operate on empty IntervalPartitions!");
 
   // Pass false to intervals_begin because we take ownership of it's memory