Debug Info: add an assertion that the context field of a global variable can not
authorManman Ren <manman.ren@gmail.com>
Fri, 21 Nov 2014 19:47:48 +0000 (19:47 +0000)
committerManman Ren <manman.ren@gmail.com>
Fri, 21 Nov 2014 19:47:48 +0000 (19:47 +0000)
commitbfd2b829d912ecd89f73ae32d4c683856dd677a3
tree5cfd1e457d64f4dcb499a3a63851d4b0b5b724d5
parent6a629c59ba685c1e7c6e1030cd7ea75de80e3506
Debug Info: add an assertion that the context field of a global variable can not
be a DIType with identifier.

This makes sure that there is no need to use DIScopeRef for global variable's
context.

rdar://18958417

llvm-svn: 222561
llvm/lib/IR/DIBuilder.cpp