[llvm] r374138 - [TypeSize] Fix module builds (cassert)

Kristina Brooks via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 21:00:03 PDT 2019


Author: kristina
Date: Tue Oct  8 21:00:03 2019
New Revision: 374138

URL: http://llvm.org/viewvc/llvm-project?rev=374138&view=rev
Log:
[TypeSize] Fix module builds (cassert)

TypeSize.h uses `assert` statements without including
the <cassert> header first which leads to failures
in modular builds.


Modified:
    llvm/trunk/include/llvm/Support/TypeSize.h

Modified: llvm/trunk/include/llvm/Support/TypeSize.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/TypeSize.h?rev=374138&r1=374137&r2=374138&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/TypeSize.h (original)
+++ llvm/trunk/include/llvm/Support/TypeSize.h Tue Oct  8 21:00:03 2019
@@ -15,6 +15,7 @@
 #ifndef LLVM_SUPPORT_TYPESIZE_H
 #define LLVM_SUPPORT_TYPESIZE_H
 
+#include <cassert>
 #include <tuple>
 
 namespace llvm {




More information about the llvm-commits mailing list