[PATCH] TableGen: Put NoRegAltName up front in RegAltNameIndices

David Siegel david.siegel at artcom.de
Tue Jun 16 03:17:27 PDT 2015


Hi,


AsmWriterEmitter::EmitGetRegisterName(...) assumes that the special item NoRegAltName is the first item in RegAltNameIndices (see AsmWriterEmitter.cpp:613). If it happens to be second element the namespace is empty and the generated code does not compile. I fixed this by moving the NoRegAltName item up front in CodeGenTarget::ReadRegAltNameIndices().

Cheers,

d 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-TableGen-Fix-order-in-RegAltNameIndices.patch
Type: application/octet-stream
Size: 1756 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150616/9dbcc47e/attachment.obj>


More information about the llvm-commits mailing list