summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-03-16 22:34:09 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-03-16 22:34:09 +0000
commitb6069255da93443fed224497c4d42c32b21a0f21 (patch)
tree04da606635163ce0ef30be887810327fa672c1d4 /clang/lib/CodeGen
parent371d8817589c825d9df29a4453e6cef639f0b423 (diff)
downloadbcm5719-llvm-b6069255da93443fed224497c4d42c32b21a0f21.tar.gz
bcm5719-llvm-b6069255da93443fed224497c4d42c32b21a0f21.zip
PR9494: Get rid of bitcast which was both unnecessary and written incorrectly.
llvm-svn: 127768
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index e23d6107c0b..99ea773fa03 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -328,9 +328,8 @@ EmitExprForReferenceBinding(CodeGenFunction &CGF, const Expr *E,
}
}
-
- const llvm::Type *ResultPtrTy = CGF.ConvertType(ResultTy)->getPointerTo();
- return CGF.Builder.CreateBitCast(Object, ResultPtrTy, "temp");
+
+ return Object;
}
}
OpenPOWER on IntegriCloud