summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2017-03-27 17:36:31 +0000
committerAdrian Prantl <aprantl@apple.com>2017-03-27 17:36:31 +0000
commite8450fdb48fd530dbe72849fad64b110e60ee526 (patch)
tree9418a1dcba8358419e1fc75daacc99bd5dc9a311 /llvm/lib
parent035862b926632e72734663b194e6ab5d43d586c5 (diff)
downloadbcm5719-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.cpp4
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.
}
OpenPOWER on IntegriCloud