fix PR3785, a valgrind error on test/CodeGen/ARM/pr3502.ll
llvm-svn: 66660
This commit is contained in:
parent
aa82be2b5b
commit
93e87652f2
|
@ -185,8 +185,12 @@ unsigned ARMTargetAsmInfo<BaseTAI>::getInlineAsmLength(const char *s) const {
|
|||
Str++;
|
||||
break;
|
||||
}
|
||||
|
||||
if (*Str == 0) break;
|
||||
|
||||
// Ignore everything from comment char(s) to EOL
|
||||
if (strncmp(Str, BaseTAI::CommentString, strlen(BaseTAI::CommentString))==-0)
|
||||
if (strncmp(Str, BaseTAI::CommentString,
|
||||
strlen(BaseTAI::CommentString)) == 0)
|
||||
atInsnStart = false;
|
||||
// FIXME do something like the following for non-Darwin
|
||||
else if (*Str == '.' && Subtarget->isTargetDarwin()) {
|
||||
|
|
Loading…
Reference in New Issue