diff options
author | Bill Wendling <isanbard@gmail.com> | 2009-03-13 04:37:11 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2009-03-13 04:37:11 +0000 |
commit | c7a09ab3110b9462ad9646cb60c22c8527491ad9 (patch) | |
tree | db612124a57fb8f23dfadbf625ea75d22512bc18 /lib/Debugger/ProgramInfo.cpp | |
parent | 77502c93442c5953c05e39fcd4c17d9e2aca766f (diff) |
Temporarily XFAIL this test.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66866 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Debugger/ProgramInfo.cpp')
-rw-r--r-- | lib/Debugger/ProgramInfo.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/Debugger/ProgramInfo.cpp b/lib/Debugger/ProgramInfo.cpp index 125ff556dd..2bf993ce5a 100644 --- a/lib/Debugger/ProgramInfo.cpp +++ b/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 : ""); } } |