[llvm-commits] [llvm] r66668 - /llvm/branches/Apple/Dib/lib/Target/ARM/ARMTargetAsmInfo.cpp
Bill Wendling
isanbard at gmail.com
Wed Mar 11 11:00:03 PDT 2009
Author: void
Date: Wed Mar 11 13:00:03 2009
New Revision: 66668
URL: http://llvm.org/viewvc/llvm-project?rev=66668&view=rev
Log:
--- Merging (from foreign repository) r66660 into '.':
U lib/Target/ARM/ARMTargetAsmInfo.cpp
fix PR3785, a valgrind error on test/CodeGen/ARM/pr3502.ll
Modified:
llvm/branches/Apple/Dib/lib/Target/ARM/ARMTargetAsmInfo.cpp
Modified: llvm/branches/Apple/Dib/lib/Target/ARM/ARMTargetAsmInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Dib/lib/Target/ARM/ARMTargetAsmInfo.cpp?rev=66668&r1=66667&r2=66668&view=diff
==============================================================================
--- llvm/branches/Apple/Dib/lib/Target/ARM/ARMTargetAsmInfo.cpp (original)
+++ llvm/branches/Apple/Dib/lib/Target/ARM/ARMTargetAsmInfo.cpp Wed Mar 11 13:00:03 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