From: whesse@chromium.org Date: Mon, 25 Jul 2011 06:58:54 +0000 (+0000) Subject: Fix compilation error in ia32 platform valgrind tests. Error was introduced in r8721. X-Git-Tag: upstream/4.7.83~18836 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=96b07762baef4fc794f250c33ce8aa346b0a8193;p=platform%2Fupstream%2Fv8.git Fix compilation error in ia32 platform valgrind tests. Error was introduced in r8721. Review URL: http://codereview.chromium.org/7495025 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@8729 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/ia32/cpu-ia32.cc b/src/ia32/cpu-ia32.cc index 615dbfed2..57e66df9e 100644 --- a/src/ia32/cpu-ia32.cc +++ b/src/ia32/cpu-ia32.cc @@ -1,4 +1,4 @@ -// Copyright 2006-2008 the V8 project authors. All rights reserved. +// Copyright 2011 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: @@ -67,7 +67,8 @@ void CPU::FlushICache(void* start, size_t size) { // solution is to run valgrind with --smc-check=all, but this comes at a big // performance cost. We can notify valgrind to invalidate its cache. #ifdef VALGRIND_DISCARD_TRANSLATIONS - VALGRIND_DISCARD_TRANSLATIONS(start, size); + unsigned res = VALGRIND_DISCARD_TRANSLATIONS(start, size); + USE(res); #endif }