[llvm] r192840 - Remove ambiguity introduced in r192836

David Blaikie dblaikie at gmail.com
Wed Oct 16 13:40:47 PDT 2013


Author: dblaikie
Date: Wed Oct 16 15:40:46 2013
New Revision: 192840

URL: http://llvm.org/viewvc/llvm-project?rev=192840&view=rev
Log:
Remove ambiguity introduced in r192836

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DIEHash.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DIEHash.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DIEHash.cpp?rev=192840&r1=192839&r2=192840&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DIEHash.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DIEHash.cpp Wed Oct 16 15:40:46 2013
@@ -385,7 +385,7 @@ void DIEHash::computeHash(DIE *Die) {
     computeHash(*I);
 
   // Following the last (or if there are no children), append a zero byte.
-  Hash.update((uint8_t)0);
+  Hash.update(makeArrayRef((uint8_t)'\0'));
 }
 
 /// This is based on the type signature computation given in section 7.27 of the





More information about the llvm-commits mailing list