[llvm] r374517 - Fix modules build for r374337

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 11 00:16:20 PDT 2019


Author: labath
Date: Fri Oct 11 00:16:19 2019
New Revision: 374517

URL: http://llvm.org/viewvc/llvm-project?rev=374517&view=rev
Log:
Fix modules build for r374337

A modules build failed with the following error:
  call to function 'operator&' that is neither visible in the template definition nor found by argument-dependent lookup

Fix that by declaring the appropriate operators in the llvm::minidump
namespace.

Modified:
    llvm/trunk/include/llvm/BinaryFormat/Minidump.h

Modified: llvm/trunk/include/llvm/BinaryFormat/Minidump.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/BinaryFormat/Minidump.h?rev=374517&r1=374516&r2=374517&view=diff
==============================================================================
--- llvm/trunk/include/llvm/BinaryFormat/Minidump.h (original)
+++ llvm/trunk/include/llvm/BinaryFormat/Minidump.h Fri Oct 11 00:16:19 2019
@@ -25,6 +25,8 @@
 namespace llvm {
 namespace minidump {
 
+LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
+
 /// The minidump header is the first part of a minidump file. It identifies the
 /// file as a minidump file, and gives the location of the stream directory.
 struct Header {




More information about the llvm-commits mailing list