[all-commits] [llvm/llvm-project] 032393: Fix warning in MSVC
Erich Keane via All-commits
all-commits at lists.llvm.org
Mon Sep 11 06:51:53 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0323938d3c7a1a48b60a7dea8ec7300e98b4a931
https://github.com/llvm/llvm-project/commit/0323938d3c7a1a48b60a7dea8ec7300e98b4a931
Author: Giuliano Belinassi <gbelinassi at suse.de>
Date: 2023-09-11 (Mon, 11 Sep 2023)
Changed paths:
M clang/lib/AST/DeclPrinter.cpp
M clang/utils/TableGen/ClangAttrEmitter.cpp
Log Message:
-----------
Fix warning in MSVC
Currently there is no PrintOnLeft attribute set, which results in an
empty switch-case. When compiling this, MSVC issues a warning saying
that the switch-case is empty. Fix this by using a macro and checking
if this macro is defined or not.
Links to D157394
More information about the All-commits
mailing list