summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Debugger
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-03-13 04:37:11 +0000
committerBill Wendling <isanbard@gmail.com>2009-03-13 04:37:11 +0000
commitb02eadf660f98b621d63fc60374d160aa4d53cec (patch)
tree81d0e89ab64492583fd1de6ca8eb5da6322c3117 /llvm/lib/Debugger
parenta1d92423cf51577e554004f7ddfe9eff0fad2780 (diff)
downloadbcm5719-llvm-b02eadf660f98b621d63fc60374d160aa4d53cec.tar.gz
bcm5719-llvm-b02eadf660f98b621d63fc60374d160aa4d53cec.zip
Temporarily XFAIL this test.
llvm-svn: 66866
Diffstat (limited to 'llvm/lib/Debugger')
-rw-r--r--llvm/lib/Debugger/ProgramInfo.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/Debugger/ProgramInfo.cpp b/llvm/lib/Debugger/ProgramInfo.cpp
index 125ff556dd5..2bf993ce5a9 100644
--- a/llvm/lib/Debugger/ProgramInfo.cpp
+++ b/llvm/lib/Debugger/ProgramInfo.cpp
@@ -117,10 +117,10 @@ SourceFileInfo::SourceFileInfo(const GlobalVariable *Desc,
if (ConstantInt *CUI = dyn_cast<ConstantInt>(CS->getOperand(1)))
Version = CUI->getZExtValue();
- if (!GetConstantStringInfo(CS->getOperand(3), BaseName))
- BaseName = "";
- if (!GetConstantStringInfo(CS->getOperand(4), Directory))
- Directory = "";
+ const char *SI = GetConstantStringInfo(CS->getOperand(3));
+ BaseName = (SI ? SI : "");
+ SI = GetConstantStringInfo(CS->getOperand(4));
+ Directory = (SI ? SI : "");
}
}
@@ -160,8 +160,8 @@ SourceFunctionInfo::SourceFunctionInfo(ProgramInfo &PI,
SourceFile = &PI.getSourceFile(GV);
// Entry #2 is the function name.
- if (!GetConstantStringInfo(CS->getOperand(2), Name))
- Name = "";
+ const char *SI = GetConstantStringInfo(CS->getOperand(2));
+ Name = (SI ? SI : "");
}
}
OpenPOWER on IntegriCloud