aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-10 05:44:18 +0000
committerChris Lattner <sabre@nondot.org>2011-07-10 05:44:18 +0000
commitaa01d26e6bf177aba365a7adce62cea6ceccfa5b (patch)
tree3f2ff9e601f341fdfb2ed2b807ac5c93b11fee91 /lib/CodeGen/CGExpr.cpp
parent57eb23f34ed2586069273c66f1a9994fe2b42967 (diff)
revert part of r134860, which is empirically unnecessary after the proper fix
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-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;
}