aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2012-09-13 17:56:17 +0000
committerDan Gohman <gohman@apple.com>2012-09-13 17:56:17 +0000
commitb54834b7e67ac04874891f3dcf69226c69582b4b (patch)
treea6df2da84f4e74442c299e3d5088d8a439401f74 /lib/VMCore
parent6579cf8df6cfcfe81519df7389f33832d9b4a59f (diff)
downloadexternal_llvm-b54834b7e67ac04874891f3dcf69226c69582b4b.zip
external_llvm-b54834b7e67ac04874891f3dcf69226c69582b4b.tar.gz
external_llvm-b54834b7e67ac04874891f3dcf69226c69582b4b.tar.bz2
Define an official slot for the new !tbaa.struct metadata tag.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@163815 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/LLVMContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/VMCore/LLVMContext.cpp b/lib/VMCore/LLVMContext.cpp
index f07f0b3..2446ec9 100644
--- a/lib/VMCore/LLVMContext.cpp
+++ b/lib/VMCore/LLVMContext.cpp
@@ -53,6 +53,11 @@ LLVMContext::LLVMContext() : pImpl(new LLVMContextImpl(*this)) {
unsigned RangeID = getMDKindID("range");
assert(RangeID == MD_range && "range kind id drifted");
(void)RangeID;
+
+ // Create the 'tbaa.struct' metadata kind.
+ unsigned TBAAStructID = getMDKindID("tbaa.struct");
+ assert(TBAAStructID == MD_tbaa_struct && "tbaa.struct kind id drifted");
+ (void)TBAAStructID;
}
LLVMContext::~LLVMContext() { delete pImpl; }