xazax.hun added inline comments.
================
Comment at: lib/StaticAnalyzer/Checkers/DanglingInternalBufferChecker.cpp:73
+ if (State->contains<RawPtrMap>(TypedR)) {
+ const SymbolRef *StrBufferPtr = State->get<RawPtrMap>(TypedR);
+ const Expr *Origin = Call.getOriginExpr();
----------------
xazax.hun wrote:
> What if no symbol is associated with the region? Won't this return null that
> we dereference later on?
Oh, never mind this one, I did not notice the `contains` call above.
https://reviews.llvm.org/D47135
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits