[TypeSize] Fix module builds (cassert)
authorKristina Brooks <notstina@gmail.com>
Wed, 9 Oct 2019 04:00:03 +0000 (04:00 +0000)
committerKristina Brooks <notstina@gmail.com>
Wed, 9 Oct 2019 04:00:03 +0000 (04:00 +0000)
TypeSize.h uses `assert` statements without including
the <cassert> header first which leads to failures
in modular builds.

llvm-svn: 374138

llvm/include/llvm/Support/TypeSize.h

index d93919a..ea08358 100644 (file)
@@ -15,6 +15,7 @@
 #ifndef LLVM_SUPPORT_TYPESIZE_H
 #define LLVM_SUPPORT_TYPESIZE_H
 
+#include <cassert>
 #include <tuple>
 
 namespace llvm {