OSDN Git Service

Fix PR7054 - Assertion `Symbol->isUndefined() && "Cannot define a symbol twice!"...
authorChris Lattner <sabre@nondot.org>
Thu, 6 May 2010 00:05:37 +0000 (00:05 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 6 May 2010 00:05:37 +0000 (00:05 +0000)
commitb4202dbb36e9799c96890fc3aa0040c1aedb33c8
treef635e8a3691c835420437e4405ac0861b108e88b
parent97c94b8fc630b55e17a37481910810639e28d086
Fix PR7054 - Assertion `Symbol->isUndefined() && "Cannot define a symbol twice!"' failed.

Users can write broken code that emits the same label twice with asm renaming,
detect this and emit a fatal backend error instead of aborting.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103140 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
test/CodeGen/X86/label-redefinition.ll [new file with mode: 0644]