]> granicus.if.org Git - clang/commit
CodeGen: correct assertion
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 3 Jun 2016 23:26:30 +0000 (23:26 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 3 Jun 2016 23:26:30 +0000 (23:26 +0000)
commitf29479ecc8110334d638a2e7fda956642f06b1b7
tree5afa6d08f1b3f215b7ec56fb22e17d4b713c2e26
parent389b53d798a6643d4e58865879bd90a394f9f02c
CodeGen: correct assertion

The assertion added earlier was overly strict.  We need to strip the pointer
casts (as when constructing the GV).  Correct the types (Function or Variable).

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271750 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBlocks.cpp