summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf49b028780d54c2203f75d96626cc420fb13af3f (patch)
treefe13c3e2689e67faf341dd859b783bc957227ddc /llvm/lib/Analysis
parent69c9aa4ce50d7afe9e485409f4470f276ab55b16 (diff)
downloadbcm5719-llvm-f49b028780d54c2203f75d96626cc420fb13af3f.tar.gz
bcm5719-llvm-f49b028780d54c2203f75d96626cc420fb13af3f.zip
use different name for parameter to make it clear that we set DIDescriptor::GV
llvm-svn: 61083
Diffstat (limited to 'llvm/lib/Analysis')
-rw-r--r--llvm/lib/Analysis/DebugInfo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/DebugInfo.cpp b/llvm/lib/Analysis/DebugInfo.cpp
index 29175a6a2d4..c46091c9554 100644
--- a/llvm/lib/Analysis/DebugInfo.cpp
+++ b/llvm/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))
OpenPOWER on IntegriCloud