]> granicus.if.org Git - llvm/commitdiff
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@374138 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/TypeSize.h

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