[llvm-commits] [llvm] r66660 - /llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp
Chris Lattner
sabre at nondot.org
Wed Mar 11 09:14:26 PDT 2009
Author: lattner
Date: Wed Mar 11 11:14:25 2009
New Revision: 66660
URL: http://llvm.org/viewvc/llvm-project?rev=66660&view=rev
Log:
fix PR3785, a valgrind error on test/CodeGen/ARM/pr3502.ll
Modified:
llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp?rev=66660&r1=66659&r2=66660&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMTargetAsmInfo.cpp Wed Mar 11 11:14:25 2009
@@ -185,8 +185,12 @@
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()) {
More information about the llvm-commits
mailing list