Skip to content

Commit ad5befe

Browse files
danilamlaadeshps-mcw
authored andcommitted
[ADT] Fix implicit reliance on cassert in StringTable.h (llvm#169324)
Adds an explicit include of `<cassert>` in StringTable.h rather than relying on the one in StringRef.h. Fixes potential compile errors if assert() was undef'ed between StringRef.h and StringTable.h inclusion.
1 parent 9005f72 commit ad5befe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/include/llvm/ADT/StringTable.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include "llvm/ADT/StringRef.h"
1313
#include "llvm/ADT/iterator.h"
14+
#include <cassert>
1415
#include <iterator>
1516
#include <limits>
1617

0 commit comments

Comments
 (0)