From aa01d26e6bf177aba365a7adce62cea6ceccfa5b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 10 Jul 2011 05:44:18 +0000 Subject: 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 --- lib/CodeGen/CGExpr.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'lib/CodeGen/CGExpr.cpp') 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(Value->getType())) - return Builder.CreateBitCast(Value, ConvertType(Ty)); - return Value; } -- cgit v1.2.3