Don't crash if a .ll file contains a forward-reference that looks like a global
authorNick Lewycky <nicholas@mxc.ca>
Thu, 11 Oct 2012 00:38:25 +0000 (00:38 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 11 Oct 2012 00:38:25 +0000 (00:38 +0000)
commit64ea275fe4e85f112ccfaf9c7b56fe64e11c771f
tree3528d07725139915c84087c2453458d8916dac58
parenta395f4df5b6d9c2feb661091ca75be2500d07cb0
Don't crash if a .ll file contains a forward-reference that looks like a global
value but later turns out to be a function.

Unfortunately, we can't fold tests into a single file because we only get one
error out of llvm-as.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165680 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AsmParser/LLParser.cpp
test/Assembler/invalid-fwdref1.ll [new file with mode: 0644]