Skip to content

Commit

Permalink
DIExpression::createFragmentExpression - silence static analyzer DIEx…
Browse files Browse the repository at this point in the history
…pression* null dereference warning with an assertion. NFCI.

llvm-svn: 373326
  • Loading branch information
RKSimon committed Oct 1, 2019
1 parent 7ce3123 commit 30f76ca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/IR/DebugInfoMetadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,6 +1161,7 @@ Optional<DIExpression *> DIExpression::createFragmentExpression(
Op.appendToVector(Ops);
}
}
assert(Expr && "Unknown DIExpression");
Ops.push_back(dwarf::DW_OP_LLVM_fragment);
Ops.push_back(OffsetInBits);
Ops.push_back(SizeInBits);
Expand Down

0 comments on commit 30f76ca

Please sign in to comment.