mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[XRay] Silence static analyzer dyn_cast<BufferExtents> null dereference warning. NFCI.
llvm-svn: 372520
This commit is contained in:
parent
6fd9cdde6b
commit
05ce96d3fa
@ -130,7 +130,7 @@ Expected<std::unique_ptr<Record>> FileBasedRecordProducer::produce() {
|
||||
R = std::move(BufferExtentsOrError.get());
|
||||
assert(R != nullptr);
|
||||
assert(isa<BufferExtents>(R.get()));
|
||||
auto BE = dyn_cast<BufferExtents>(R.get());
|
||||
auto BE = cast<BufferExtents>(R.get());
|
||||
CurrentBufferBytes = BE->size();
|
||||
return std::move(R);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user