[PATCH] Fix assert on asm register that are "%"

Olivier Goffart ogoffart at woboq.com
Thu Aug 7 03:55:07 PDT 2014


Hi, 

In TargetInfo::isValidGCCRegisterName the Name might be empty again after 
removing the %

Found on code like
  register int foo asm("%" MACRO);
where MACRO was supposed to be defined in a header file that was not found.

Regards

-- 
Olivier
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-assertion-on-asm-register-that-are.patch
Type: text/x-patch
Size: 1383 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140807/4496c7f3/attachment.bin>


More information about the cfe-commits mailing list