[all-commits] [llvm/llvm-project] 8e6634: [Support] Use macro var args to allow templates wi...

Tyler Nowicki via All-commits all-commits at lists.llvm.org
Thu Dec 5 05:49:05 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e6634444876a59c1352a4d62704e93b23b7c5ae
      https://github.com/llvm/llvm-project/commit/8e6634444876a59c1352a4d62704e93b23b7c5ae
  Author: Tyler Nowicki <tyler.nowicki at amd.com>
  Date:   2024-12-05 (Thu, 05 Dec 2024)

  Changed paths:
    M llvm/include/llvm/Support/Debug.h
    M llvm/unittests/Support/DebugTest.cpp

  Log Message:
  -----------
  [Support] Use macro var args to allow templates within DEBUG_WITH_TYPE (#117614)

Use variadic args with DEBUG_WITH_TYPE("name", ...) macros to resolve a
compilation failure that occurs when using a comma within the last macro
argument. Commas come up when instantiating templates such as
SmallMapVector that require multiple template args.



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