blob: 389666012be26d7f2344f1ce075232d2ad75ff3e [file] [log] [blame]
//===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include "swift/Runtime/Config.h"
#include "swift/Runtime/Metadata.h"
using namespace swift;
SWIFT_CC(swift)
extern "C"
uint32_t swift_StdlibUnittest_getMetadataKindOf(
OpaqueValue *value,
const Metadata *type
) {
auto result = uint32_t(type->getKind());
type->vw_destroy(value);
return result;
}