]> granicus.if.org Git - clang/commit
Stop crashing on empty asm input constraints
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 16 Dec 2013 03:20:06 +0000 (03:20 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 16 Dec 2013 03:20:06 +0000 (03:20 +0000)
commitff1554738da8fed4bbb53fecab7f369d56a0cd66
treedbf64c110b8547c9286440ff99377c5571c18eae
parent6cbd772cf9d6005a8d4e878713e8a38d52de3f20
Stop crashing on empty asm input constraints

An empty string for an ASM input constraint is invalid, and will crash
during clang CodeGen.  Change TargetInfo::validateInputConstraint to
reject an empty string.

<rdar://problem/15552191>

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@197362 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/TargetInfo.cpp
test/Sema/asm.c