forked from llvm-mirror/clang
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ODRHash] Adjust info stored for FunctionTemplateDecl.
Avoid storing information for definitions since those can be out-of-line and vary between modules even when the declarations are the same. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@334151 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
1 parent
f7a73f3
commit 45021ac
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3617,6 +3617,20 @@ int I10 = F10(); | |
#endif | ||
// [email protected]:* {{'FunctionDecl::F10' has different definitions in different modules; definition in module 'SecondModule' first difference is function body}} | ||
// [email protected]:* {{but in 'FirstModule' found a different body}} | ||
|
||
#if defined(FIRST) | ||
struct S11 { | ||
template <int> void foo(); | ||
}; | ||
#elif defined(SECOND) | ||
struct S11 { | ||
template <int> void foo(); | ||
}; | ||
template <int> void S11::foo() {} | ||
#else | ||
S11 s11; | ||
#endif | ||
|
||
} // namespace FunctionDecl | ||
|
||
namespace DeclTemplateArguments { | ||
|