aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/CGExpr.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index b9746330bf..0a42a5f519 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -755,10 +755,6 @@ llvm::Value *CodeGenFunction::EmitFromMemory(llvm::Value *Value, QualType Ty) {
return Builder.CreateTrunc(Value, Builder.getInt1Ty(), "tobool");
}
- // If this is a pointer r-value, make sure that it has the right scalar type.
- if (isa<llvm::PointerType>(Value->getType()))
- return Builder.CreateBitCast(Value, ConvertType(Ty));
-
return Value;
}