projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
035862b
)
Remove redundant check for nullptr.
author
Adrian Prantl
<aprantl@apple.com>
Mon, 27 Mar 2017 17:36:31 +0000
(17:36 +0000)
committer
Adrian Prantl
<aprantl@apple.com>
Mon, 27 Mar 2017 17:36:31 +0000
(17:36 +0000)
llvm-svn: 298866
llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
b/llvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
index
5d117fd
..
383b8cd
100644
(file)
--- 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.
}