[llvm] r184864 - The GCDA 402 format won't have a second checksum either.
Bill Wendling
isanbard at gmail.com
Tue Jun 25 11:13:53 PDT 2013
Author: void
Date: Tue Jun 25 13:13:52 2013
New Revision: 184864
URL: http://llvm.org/viewvc/llvm-project?rev=184864&view=rev
Log:
The GCDA 402 format won't have a second checksum either.
Modified:
llvm/trunk/lib/IR/GCOV.cpp
Modified: llvm/trunk/lib/IR/GCOV.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/GCOV.cpp?rev=184864&r1=184863&r2=184864&view=diff
==============================================================================
--- llvm/trunk/lib/IR/GCOV.cpp (original)
+++ llvm/trunk/lib/IR/GCOV.cpp Tue Jun 25 13:13:52 2013
@@ -94,7 +94,7 @@ bool GCOVFunction::read(GCOVBuffer &Buff
Buff.readInt(); // Function header length
Ident = Buff.readInt();
Buff.readInt(); // Checksum #1
- if (Format != GCOV::GCNO_402)
+ if (Format != GCOV::GCNO_402 && Format != GCOV::GCDA_402)
Buff.readInt(); // Checksum #2
Name = Buff.readString();
More information about the llvm-commits
mailing list