diff options
| author | Adrian Prantl <aprantl@apple.com> | 2017-03-27 17:36:31 +0000 |
|---|---|---|
| committer | Adrian Prantl <aprantl@apple.com> | 2017-03-27 17:36:31 +0000 |
| commit | e8450fdb48fd530dbe72849fad64b110e60ee526 (patch) | |
| tree | 9418a1dcba8358419e1fc75daacc99bd5dc9a311 /llvm/lib | |
| parent | 035862b926632e72734663b194e6ab5d43d586c5 (diff) | |
| download | bcm5719-llvm-e8450fdb48fd530dbe72849fad64b110e60ee526.tar.gz bcm5719-llvm-e8450fdb48fd530dbe72849fad64b110e60ee526.zip | |
Remove redundant check for nullptr.
llvm-svn: 298866
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp index 5d117fdbd5d..383b8cddb1a 100644 --- a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp @@ -947,10 +947,10 @@ void CodeViewDebug::collectVariableInfo(const DISubprogram *SP) { // Handle fragments. auto Fragment = DIExpr->getFragmentInfo(); - if (DIExpr && Fragment) { + if (Fragment) { IsSubfield = true; StructOffset = Fragment->OffsetInBits / 8; - } else if (DIExpr && DIExpr->getNumElements() > 0) { + } else if (DIExpr->getNumElements() > 0) { continue; // Ignore unrecognized exprs. } |

