summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-07-20 04:59:57 +0000
committerChris Lattner <sabre@nondot.org>2011-07-20 04:59:57 +0000
commitcb8095f766f1fe3d664d90ec450093468933f23c (patch)
tree1e591f42c8121ae71980a822afc4ec4cba04b724 /lib/CodeGen/CGExpr.cpp
parent410b12e55395216a02a848a791a38b0f153eba87 (diff)
downloadclang-cb8095f766f1fe3d664d90ec450093468933f23c.tar.gz
clang-cb8095f766f1fe3d664d90ec450093468933f23c.tar.bz2
clang-cb8095f766f1fe3d664d90ec450093468933f23c.tar.xz
as eli points out, we're not doing memory stuff here. While ConvertType
and ConvertTypeForMem are the same for pointers, it is best to just use ConvertType. Thanks Eli! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@135567 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
-rw-r--r--lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp
index a4992a4ea0..6269c53624 100644
--- a/lib/CodeGen/CGExpr.cpp
+++ b/lib/CodeGen/CGExpr.cpp
@@ -174,7 +174,7 @@ namespace {
}
static llvm::Value *
-CreateReferenceTemporary(CodeGenFunction& CGF, QualType Type,
+CreateReferenceTemporary(CodeGenFunction &CGF, QualType Type,
const NamedDecl *InitializedDecl) {
if (const VarDecl *VD = dyn_cast_or_null<VarDecl>(InitializedDecl)) {
if (VD->hasGlobalStorage()) {