OSDN Git Service

[AsmPrinter] Don't assert on GOT equivalent non-constant users.
authorAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 27 Mar 2015 01:40:54 +0000 (01:40 +0000)
committerAhmed Bougacha <ahmed.bougacha@gmail.com>
Fri, 27 Mar 2015 01:40:54 +0000 (01:40 +0000)
commitf265603512ab9840c8e8c3327814d1b273d8cea1
tree067c913cbe8ac38f4c13c4f4eb8574d5d5bb0366
parent9f2b49c5219ff512d3033d6cbaa2467621d03e26
[AsmPrinter] Don't assert on GOT equivalent non-constant users.

We used to dyn_cast<Constant> in the recursive call, but cast<> in the
initial one, and there can be non-Constant initial users.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233346 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/MC/MachO/cstexpr-gotpcrel-64.ll