summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/DebugInfo/CodeView/StreamWriter.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/DebugInfo/CodeView/StreamWriter.h')
-rw-r--r--llvm/include/llvm/DebugInfo/CodeView/StreamWriter.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/include/llvm/DebugInfo/CodeView/StreamWriter.h b/llvm/include/llvm/DebugInfo/CodeView/StreamWriter.h
index 4d393d2ef79..ad9277b8e22 100644
--- a/llvm/include/llvm/DebugInfo/CodeView/StreamWriter.h
+++ b/llvm/include/llvm/DebugInfo/CodeView/StreamWriter.h
@@ -42,10 +42,6 @@ public:
}
template <typename T> Error writeObject(const T &Obj) {
- static_assert(!std::is_pointer<T>::value,
- "writeObject should not be used with pointers, to write "
- "the pointed-to value dereference the pointer before calling "
- "writeObject");
return writeBytes(
ArrayRef<uint8_t>(reinterpret_cast<const uint8_t *>(&Obj), sizeof(T)));
}
OpenPOWER on IntegriCloud