commit | ddaba0fb7804ee40af648cc24f0b9e51c10a05d7 | [log] [tgz] |
---|---|---|
author | Stephen Hines <srhines@google.com> | Tue Jun 16 16:00:26 2015 -0700 |
committer | Stephen Hines <srhines@google.com> | Tue Jun 16 17:45:03 2015 -0700 |
tree | b532db9dc65cfa819f8317478e93815b3b0bec57 | |
parent | e23d82b457517d0302ebabefad32118ac7b78023 [diff] |
Fix potential nullptr dereference. Bug: 21597073 We must use dyn_cast_or_null<> instead of dyn_cast<>, because we aren't guaranteed to always be passed a NamedDecl. Change-Id: I7b00eacc639a688f8e2fdbeea80b87a01372e232 (cherry picked from commit 33ea573b6df7b7fe48d2b68d4c479f33082e3c0d)