[all-commits] [llvm/llvm-project] 1a253e: [NFC][Offload] Fix possible edge cases in offload-...

Callum Fare via All-commits all-commits at lists.llvm.org
Tue Jul 1 06:10:12 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a253e213daf4a83ca593499230b448d7e208093
      https://github.com/llvm/llvm-project/commit/1a253e213daf4a83ca593499230b448d7e208093
  Author: Callum Fare <callum at codeplay.com>
  Date:   2025-07-01 (Tue, 01 Jul 2025)

  Changed paths:
    M offload/tools/offload-tblgen/APIGen.cpp
    M offload/tools/offload-tblgen/RecordTypes.hpp

  Log Message:
  -----------
  [NFC][Offload] Fix possible edge cases in offload-tblgen (#146511)

Fix a couple of unhandled edge cases in offload-tblgen that were found
by static analysis
* `LineStart` may wrap around to 0 when processing multi-line strings.
The value is not actually being used in that case, but still better to
explicitly handle it
* Possible unchecked nullptr when processing parameter flags



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