[all-commits] [llvm/llvm-project] 9d91e0: [clang] CIndex.cpp - use cast<> instead of dyn_cas...
    Simon Pilgrim via All-commits 
    all-commits at lists.llvm.org
       
    Wed Feb 23 02:10:02 PST 2022
    
    
  
  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9d91e03b7d075239483e9a5793e1e5db9152bdf1
      https://github.com/llvm/llvm-project/commit/9d91e03b7d075239483e9a5793e1e5db9152bdf1
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-23 (Wed, 23 Feb 2022)
  Changed paths:
    M clang/tools/libclang/CIndex.cpp
  Log Message:
  -----------
  [clang] CIndex.cpp - use cast<> instead of dyn_cast<> to avoid dereference of nullptr
The pointers are used immediately, so assert the cast is correct instead of returning nullptr
    
    
More information about the All-commits
mailing list