Try to fix the Windows build after r220637
authorHans Wennborg <hans@hanshq.net>
Sun, 26 Oct 2014 19:27:02 +0000 (19:27 +0000)
committerHans Wennborg <hans@hanshq.net>
Sun, 26 Oct 2014 19:27:02 +0000 (19:27 +0000)
llvm-svn: 220643

compiler-rt/lib/sanitizer_common/sanitizer_win.cc

index b20237c..2f9b158 100644 (file)
@@ -483,7 +483,7 @@ void BufferedStackTrace::SlowUnwindStackWithContext(uptr pc, void *context,
                      &stack_frame, &ctx, NULL, &SymFunctionTableAccess64,
                      &SymGetModuleBase64, NULL) &&
          size < Min(max_depth, kStackTraceMax)) {
-    trace[size++] = (uptr)stack_frame.AddrPC.Offset;
+    trace_buffer[size++] = (uptr)stack_frame.AddrPC.Offset;
   }
 }
 #endif  // #if !SANITIZER_GO