diff options
Diffstat (limited to 'clangd/index/SymbolID.cpp')
-rw-r--r-- | clangd/index/SymbolID.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/clangd/index/SymbolID.cpp b/clangd/index/SymbolID.cpp index 1fd42744..b97103d3 100644 --- a/clangd/index/SymbolID.cpp +++ b/clangd/index/SymbolID.cpp @@ -1,9 +1,8 @@ //===--- SymbolID.cpp --------------------------------------------*- C++-*-===// // -// The LLVM Compiler Infrastructure -// -// This file is distributed under the University of Illinois Open Source -// License. See LICENSE.TXT for details. +// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. +// See https://llvm.org/LICENSE.txt for license information. +// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// @@ -50,7 +49,8 @@ llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const SymbolID &ID) { llvm::hash_code hash_value(const SymbolID &ID) { // We already have a good hash, just return the first bytes. - assert(sizeof(size_t) <= SymbolID::RawSize && "size_t longer than SHA1!"); + static_assert(sizeof(size_t) <= SymbolID::RawSize, + "size_t longer than SHA1!"); size_t Result; memcpy(&Result, ID.raw().data(), sizeof(size_t)); return llvm::hash_code(Result); |