summaryrefslogtreecommitdiff
path: root/lib/IR
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-05-01 17:56:13 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-05-01 17:56:13 +0000
commit11786be74365f32426a74477db4837e496fcf89c (patch)
treeb3f34eb2a8e22d43b2dd75079c600e1170e82a22 /lib/IR
parent32207fac808af8f395826b391ce4a56520027a63 (diff)
downloadllvm-11786be74365f32426a74477db4837e496fcf89c.tar.gz
llvm-11786be74365f32426a74477db4837e496fcf89c.tar.bz2
llvm-11786be74365f32426a74477db4837e496fcf89c.tar.xz
PR19623: Implement typedefs of void.
This the LLVM portion that will allow Clang and other frontends to emit typedefs of void by providing a null type for the typedef's underlying type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/IR')
-rw-r--r--lib/IR/DIBuilder.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/IR/DIBuilder.cpp b/lib/IR/DIBuilder.cpp
index 8dd5165eb2..8d7d21eb16 100644
--- a/lib/IR/DIBuilder.cpp
+++ b/lib/IR/DIBuilder.cpp
@@ -355,7 +355,6 @@ DIDerivedType DIBuilder::createReferenceType(unsigned Tag, DIType RTy) {
DIDerivedType DIBuilder::createTypedef(DIType Ty, StringRef Name, DIFile File,
unsigned LineNo, DIDescriptor Context) {
// typedefs are encoded in DIDerivedType format.
- assert(Ty.isType() && "Invalid typedef type!");
Value *Elts[] = {
GetTagConstant(VMContext, dwarf::DW_TAG_typedef),
File.getFileNode(),