aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-04-10 04:59:59 +0000
committerAnders Carlsson <andersca@mac.com>2009-04-10 04:59:59 +0000
commit12e330c46ab3a4a12dbbd4ad7e96ffdd399f5518 (patch)
tree68e6eab8336560bf48e49897473161a7532924c6 /lib/CodeGen
parent1b78276a75a5a0f496a82429c1ff9604d622a76d (diff)
Rename variables to avoid conflict.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/CGExprConstant.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/CodeGen/CGExprConstant.cpp b/lib/CodeGen/CGExprConstant.cpp
index c5f22023d3..a3fca20f4f 100644
--- a/lib/CodeGen/CGExprConstant.cpp
+++ b/lib/CodeGen/CGExprConstant.cpp
@@ -482,7 +482,7 @@ llvm::Constant *CodeGenModule::EmitConstantExpr(const Expr *E,
assert(0 && "Constant expressions should be initialized.");
return 0;
case APValue::LValue: {
- const llvm::Type *DestType = getTypes().ConvertTypeForMem(E->getType());
+ const llvm::Type *DestTy = getTypes().ConvertTypeForMem(E->getType());
llvm::Constant *Offset =
llvm::ConstantInt::get(llvm::Type::Int64Ty,
Result.Val.getLValueOffset());
@@ -502,21 +502,21 @@ llvm::Constant *CodeGenModule::EmitConstantExpr(const Expr *E,
// Convert to the appropriate type; this could be an lvalue for
// an integer.
- if (isa<llvm::PointerType>(DestType))
- return llvm::ConstantExpr::getBitCast(C, DestType);
+ if (isa<llvm::PointerType>(DestTy))
+ return llvm::ConstantExpr::getBitCast(C, DestTy);
- return llvm::ConstantExpr::getPtrToInt(C, DestType);
+ return llvm::ConstantExpr::getPtrToInt(C, DestTy);
} else {
C = Offset;
// Convert to the appropriate type; this could be an lvalue for
// an integer.
- if (isa<llvm::PointerType>(DestType))
- return llvm::ConstantExpr::getIntToPtr(C, DestType);
+ if (isa<llvm::PointerType>(DestTy))
+ return llvm::ConstantExpr::getIntToPtr(C, DestTy);
// If the types don't match this should only be a truncate.
- if (C->getType() != DestType)
- return llvm::ConstantExpr::getTrunc(C, DestType);
+ if (C->getType() != DestTy)
+ return llvm::ConstantExpr::getTrunc(C, DestTy);
return C;
}