1 //===--- Type.cpp - Types for the constexpr VM ------------------*- C++ -*-===//
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
7 //===----------------------------------------------------------------------===//
11 using namespace clang;
12 using namespace clang::interp;
17 size_t primSize(PrimType Type) {
18 TYPE_SWITCH(Type, return sizeof(T));
19 llvm_unreachable("not a primitive type");