From 3ac2f5a25e9cae22ec8f5ae5e28de93f34d6485a Mon Sep 17 00:00:00 2001 From: Alex Light Date: Wed, 18 Nov 2020 12:23:48 -0800 Subject: Make RTP::Visit robust against input order ReferenceTypePropogation::Visit(ArrayRef) relied on the input having a particular order with known values at the front then topological. This could cause issues if the list was not properly sorted, causing the RTP to silently fail. This makes RTP robust against the ordering of inputs for this function. Test: ./test.py --host Bug: 67037140 Change-Id: I03c522ea745f271ce438c82f7c6f3ab476c8249a --- compiler/driver/compiler_options.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/driver/compiler_options.h') diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h index 77237078f8..778e7899b3 100644 --- a/compiler/driver/compiler_options.h +++ b/compiler/driver/compiler_options.h @@ -496,7 +496,7 @@ class CompilerOptions final { friend class Dex2Oat; friend class DexToDexDecompilerTest; friend class CommonCompilerDriverTest; - friend class CommonCompilerTest; + friend class CommonCompilerTestImpl; friend class jit::JitCompiler; friend class verifier::VerifierDepsTest; friend class linker::Arm64RelativePatcherTest; -- cgit v1.2.3-59-g8ed1b