]> granicus.if.org Git - clang/commit
Check for null pointers before calling the Stmt Profiler
authorRichard Trieu <rtrieu@google.com>
Fri, 10 Jun 2016 04:52:09 +0000 (04:52 +0000)
committerRichard Trieu <rtrieu@google.com>
Fri, 10 Jun 2016 04:52:09 +0000 (04:52 +0000)
commit570fa27faf96d0855d9a6fde084fe3f9b72127ff
treed60f46d60005ccb4ecd776d120da91432fcad751
parent13f56e29a745a736abae6e82eb082c93c8f238d9
Check for null pointers before calling the Stmt Profiler

Some calls from OMPClauseProfiler were calling the Stmt Profiler with null
pointers, but the profiler can only handle non-null pointers.  Add an assert
to the VisitStmt for valid pointers, and check all calls from OMPClauseProfiler
to be non-null pointers.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@272368 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/StmtProfile.cpp