[all-commits] [llvm/llvm-project] 7a80c8: [MC] Remove redundant null check, NFCI (#100928)

abhishek-kaushik22 via All-commits all-commits at lists.llvm.org
Tue Jul 30 22:30:04 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7a80c86726f7c37128bfee3618707c1607f5014d
      https://github.com/llvm/llvm-project/commit/7a80c86726f7c37128bfee3618707c1607f5014d
  Author: abhishek-kaushik22 <abhishek.kaushik at intel.com>
  Date:   2024-07-31 (Wed, 31 Jul 2024)

  Changed paths:
    M llvm/lib/MC/MCContext.cpp

  Log Message:
  -----------
  [MC] Remove redundant null check, NFCI (#100928)

`getOrCreateSymbol` should never return a `nullptr`, add an assert and
remove the redundant null check in the if condition.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list