projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e8bd0b
)
fix PR3785, a valgrind error on test/CodeGen/ARM/pr3502.ll
author
Chris Lattner
<sabre@nondot.org>
Wed, 11 Mar 2009 16:14:25 +0000
(16:14 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 11 Mar 2009 16:14:25 +0000
(16:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66660
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/ARM/ARMTargetAsmInfo.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/ARM/ARMTargetAsmInfo.cpp
b/lib/Target/ARM/ARMTargetAsmInfo.cpp
index d2965fe80f0e97a7bb09f8b0b96e07685d223939..4107dccd2a693e8ae2d08744809c9c7200cd8995 100644
(file)
--- a/
lib/Target/ARM/ARMTargetAsmInfo.cpp
+++ b/
lib/Target/ARM/ARMTargetAsmInfo.cpp
@@
-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()) {