[all-commits] [llvm/llvm-project] 0a69c8: [NFC][IR2Vec] Remove unreachable code and simplify...

S. VenkataKeerthy via All-commits all-commits at lists.llvm.org
Mon Jun 30 20:32:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a69c83421ac69c60eb0122201569f36272312b0
      https://github.com/llvm/llvm-project/commit/0a69c83421ac69c60eb0122201569f36272312b0
  Author: S. VenkataKeerthy <31350914+svkeerthy at users.noreply.github.com>
  Date:   2025-06-30 (Mon, 30 Jun 2025)

  Changed paths:
    M llvm/lib/Analysis/IR2Vec.cpp
    M llvm/unittests/Analysis/IR2VecTest.cpp

  Log Message:
  -----------
  [NFC][IR2Vec] Remove unreachable code and simplify invalid mode test (#146459)

The code following `llvm_unreachable`  is optimized out in Release builds. In this case, `Embedder::create` do not seem to return `nullptr` causing `CreateInvalidMode` test to break. Hence removing `llvm_unreachable`.



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