[all-commits] [llvm/llvm-project] c3134d: [clang] Replaced some manual pointer tagging with ...

Joshua Haberman via All-commits all-commits at lists.llvm.org
Mon Mar 22 14:14:06 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c3134d7c44f1059889dfee698dff415f7c2e1620
      https://github.com/llvm/llvm-project/commit/c3134d7c44f1059889dfee698dff415f7c2e1620
  Author: Joshua Haberman <jhaberman at gmail.com>
  Date:   2021-03-22 (Mon, 22 Mar 2021)

  Changed paths:
    M clang/include/clang/Sema/Initialization.h
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Sema/SemaDeclCXX.cpp
    M clang/lib/Sema/SemaInit.cpp

  Log Message:
  -----------
  [clang] Replaced some manual pointer tagging with llvm::PointerIntPair.

There is no functional change here (hence no new tests). The only change
is to replace a couple uintptr_t members with llvm::PointerIntPair<> to
clean up the code, making it more readable and less error prone.

This cleanup highlighted that the old code was effectively casting away
const. This is fixed by changing some function signatures.

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D98889




More information about the All-commits mailing list