/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/AST/Interp/PrimType.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | //===--- Type.cpp - Types for the constexpr VM ------------------*- C++ -*-===// |
2 | | // |
3 | | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | | // See https://llvm.org/LICENSE.txt for license information. |
5 | | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | | // |
7 | | //===----------------------------------------------------------------------===// |
8 | | |
9 | | #include "PrimType.h" |
10 | | |
11 | | using namespace clang; |
12 | | using namespace clang::interp; |
13 | | |
14 | | namespace clang { |
15 | | namespace interp { |
16 | | |
17 | 5 | size_t primSize(PrimType Type) { |
18 | 5 | TYPE_SWITCH(Type, return sizeof(T)); |
19 | 0 | llvm_unreachable("not a primitive type"); |
20 | 0 | } |
21 | | |
22 | | } // namespace interp |
23 | | } // namespace clang |