[MC][PowerPC] Fix a crash when redefining a symbol after .set
authorFangrui Song <maskray@google.com>
Fri, 13 Dec 2019 00:18:57 +0000 (16:18 -0800)
committerFangrui Song <maskray@google.com>
Fri, 13 Dec 2019 17:31:54 +0000 (09:31 -0800)
commitf99eedeb72644671cd584f48e4c136d47f6b0020
treef96a25e31a3eabc8405bd7bb94e4b09747e9aac4
parenta2cd4600ec6710f3218f071128e2a81edd23a2b2
[MC][PowerPC] Fix a crash when redefining a symbol after .set

Fix PR44284. This is probably not valid assembly but we should not crash.

Reviewed By: luporl, #powerpc, steven.zhang

Differential Revision: https://reviews.llvm.org/D71443
llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCTargetDesc.cpp
llvm/test/MC/PowerPC/ppc64-localentry-symbols.s