summaryrefslogtreecommitdiff
path: root/lib/Analysis
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2008-12-16 09:06:01 +0000
committerTorok Edwin <edwintorok@gmail.com>2008-12-16 09:06:01 +0000
commita70c68efc8b43d04b33a1d34670d640fbc9e6e74 (patch)
tree5ac7d90f5707d3c2ef8c1acbde35913aee6f7959 /lib/Analysis
parent1447f5ca1f59fdbe885df36c74e868267297a59d (diff)
downloadllvm-a70c68efc8b43d04b33a1d34670d640fbc9e6e74.tar.gz
llvm-a70c68efc8b43d04b33a1d34670d640fbc9e6e74.tar.bz2
llvm-a70c68efc8b43d04b33a1d34670d640fbc9e6e74.tar.xz
use different name for parameter to make it clear that we set DIDescriptor::GV
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61083 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r--lib/Analysis/DebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/DebugInfo.cpp b/lib/Analysis/DebugInfo.cpp
index 29175a6a2d..c46091c955 100644
--- a/lib/Analysis/DebugInfo.cpp
+++ b/lib/Analysis/DebugInfo.cpp
@@ -101,8 +101,8 @@ DIGlobalVariable::DIGlobalVariable(GlobalVariable *GV)
DIBlock::DIBlock(GlobalVariable *GV)
: DIDescriptor(GV, dwarf::DW_TAG_lexical_block) {}
// needed by DIVariable::getType()
-DIType::DIType(GlobalVariable *GV) : DIDescriptor(GV) {
- if (!GV) return;
+DIType::DIType(GlobalVariable *gv) : DIDescriptor(gv) {
+ if (!gv) return;
unsigned tag = getTag();
if (tag != dwarf::DW_TAG_base_type && !DIDerivedType::isDerivedType(tag) &&
!DICompositeType::isCompositeType(tag))