summaryrefslogtreecommitdiffstats
path: root/clang/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
commita2673ce134dd0e10fc001f1055b52ffae5d443c5 (patch)
treee987294ad5aa61d92f78bc9db78a4b40bcf03fdc /clang/lib/CodeGen/CGExpr.cpp
parent117b724b594b60b052e43ee1c5adc6f0841f27fc (diff)
downloadbcm5719-llvm-a2673ce134dd0e10fc001f1055b52ffae5d443c5.tar.gz
bcm5719-llvm-a2673ce134dd0e10fc001f1055b52ffae5d443c5.zip
revert part of r134860, which is empirically unnecessary after the proper fix
llvm-svn: 134864
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index b9746330bf1..0a42a5f5190 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/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;
}
OpenPOWER on IntegriCloud