Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(805)

Unified Diff: runtime/vm/isolate.cc

Issue 925003003: Fix ASAN build failure due to unused local. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 43869)
+++ runtime/vm/isolate.cc (working copy)
@@ -699,15 +699,16 @@
uword (*func)() =
reinterpret_cast<uword (*)()>(StubCode::GetStackPointerEntryPoint());
// But for performance (and to support simulators), we normally use a local.
- uword stack_allocated_local_address = reinterpret_cast<uword>(&func);
#if defined(__has_feature)
#if __has_feature(address_sanitizer)
uword current_sp = func();
return current_sp;
#else
+ uword stack_allocated_local_address = reinterpret_cast<uword>(&func);
return stack_allocated_local_address;
#endif
#else
+ uword stack_allocated_local_address = reinterpret_cast<uword>(&func);
return stack_allocated_local_address;
#endif
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698