[all-commits] [llvm/llvm-project] 57e000: Fix Wundef warnings for Support/Compiler.h

Sven van Haastregt via All-commits all-commits at lists.llvm.org
Thu Nov 19 06:12:56 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 57e0007546abd6c73c54249705f4fe42592fd179
      https://github.com/llvm/llvm-project/commit/57e0007546abd6c73c54249705f4fe42592fd179
  Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
  Date:   2020-11-19 (Thu, 19 Nov 2020)

  Changed paths:
    M llvm/include/llvm/Support/Compiler.h

  Log Message:
  -----------
  Fix Wundef warnings for Support/Compiler.h

Support/Compiler.h is included by c files (e.g. regcomp.c) where
__cplusplus is not defined at all.  Avoid evaluating the undefined
macro for such files.




More information about the All-commits mailing list