[libcxxabi patch] Fix minor initialization bug in Registers_x86_64

Nico Weber thakis at chromium.org
Thu Dec 5 15:41:52 PST 2013


Hi,

here's a minor 1-line patch that fixes what seems to be a bug in the
Registers_arm64 constructor. All libcxxabi tests still pass with this
change.

Nico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131205/b1e55420/attachment.html>
-------------- next part --------------
Index: src/Unwind/Registers.hpp
===================================================================
--- src/Unwind/Registers.hpp	(revision 196539)
+++ src/Unwind/Registers.hpp	(working copy)
@@ -1066,7 +1066,7 @@
 
 inline Registers_arm64::Registers_arm64() {
   bzero(&_registers, sizeof(_registers));
-  bzero(&_registers, sizeof(_vectorHalfRegisters));
+  bzero(&_vectorHalfRegisters, sizeof(_vectorHalfRegisters));
 }
 
 inline bool Registers_arm64::validRegister(int regNum) const {


More information about the cfe-commits mailing list