Fixed generating method calls from same module when inlining.

This commit is contained in:
Evgeny Gerashchenko
2014-07-10 17:26:40 +04:00
parent 6f1bdd1227
commit 708816f09c
9 changed files with 111 additions and 61 deletions
@@ -117,6 +117,8 @@ public class DescriptorUtils {
return descriptor.getContainingDeclaration() instanceof PackageFragmentDescriptor;
}
// WARNING! Don't use this method in JVM backend, use JvmCodegenUtil.isCallInsideSameModuleAsDeclared() instead.
// The latter handles compilation against compiled part of our module correctly.
public static boolean areInSameModule(@NotNull DeclarationDescriptor first, @NotNull DeclarationDescriptor second) {
return getContainingModule(first).equals(getContainingModule(second));
}