]> granicus.if.org Git - clang/commit
[ASTImporter] Fix inequality of functions with different attributes
authorGabor Marton <martongabesz@gmail.com>
Thu, 24 Jan 2019 14:47:44 +0000 (14:47 +0000)
committerGabor Marton <martongabesz@gmail.com>
Thu, 24 Jan 2019 14:47:44 +0000 (14:47 +0000)
commit899258dc2ec96c37720d783b826c0119d26981b0
tree69452d0ec7d855a68dcc46267de496c8e7a208ff
parent76252b07cbbbaff6e4c84033a940f08b35f55cd5
[ASTImporter] Fix inequality of functions with different attributes

Summary:
FunctionType::ExtInfo holds such properties of a function which are needed
mostly for code gen. We should not compare these bits when checking for
structural equivalency.
Checking ExtInfo caused false ODR errors during CTU analysis (of tmux).

Reviewers: a_sidorin, a.sidorin, shafik

Subscribers: rnkovacs, dkrupp, Szelethus, cfe-commits

Differential Revision: https://reviews.llvm.org/D53699

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ASTStructuralEquivalence.cpp
unittests/AST/StructuralEquivalenceTest.cpp