Add space to assert message.
[oota-llvm.git] / lib / Analysis / Loads.cpp
index 3158873caa2dda6c71cc83887c08ec8ec9f23794..0902a39a9f8199898ff6f37572f412d30d57bb69 100644 (file)
@@ -57,8 +57,7 @@ bool llvm::isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom,
                                        unsigned Align, const DataLayout *TD) {
   int64_t ByteOffset = 0;
   Value *Base = V;
-  if (TD)
-    Base = GetPointerBaseWithConstantOffset(V, ByteOffset, *TD);
+  Base = GetPointerBaseWithConstantOffset(V, ByteOffset, TD);
 
   if (ByteOffset < 0) // out of bounds
     return false;