diff options
author | Richard Trieu <rtrieu@google.com> | 2018-09-14 01:15:28 +0000 |
---|---|---|
committer | Richard Trieu <rtrieu@google.com> | 2018-09-14 01:15:28 +0000 |
commit | d8673901ab8fe5c104196d08b5c44da026f20870 (patch) | |
tree | 1ca90d89577b6302096a9836e663dc3f9f140c69 /clang/test/Modules/Inputs | |
parent | 847bd3316640a07dbef20029accc7905d836ecf8 (diff) | |
download | bcm5719-llvm-d8673901ab8fe5c104196d08b5c44da026f20870.tar.gz bcm5719-llvm-d8673901ab8fe5c104196d08b5c44da026f20870.zip |
[ODRHash] Fix early exit that skipped code.
There is a bit of code at the end of AddDeclaration that should be run on
every exit of the function. However, there was an early exit beforehand
that could be triggered, which causes a small amount of data to skip the
hashing, leading to false positive mismatch. Use a separate function so
that this code is always run.
llvm-svn: 342199
Diffstat (limited to 'clang/test/Modules/Inputs')
-rw-r--r-- | clang/test/Modules/Inputs/odr_hash-Unresolved/class.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/Modules/Inputs/odr_hash-Unresolved/class.h b/clang/test/Modules/Inputs/odr_hash-Unresolved/class.h index fe3a7116f9b..8a3c9f941f7 100644 --- a/clang/test/Modules/Inputs/odr_hash-Unresolved/class.h +++ b/clang/test/Modules/Inputs/odr_hash-Unresolved/class.h @@ -6,6 +6,7 @@ class S { void run() { int x; A::Check(&Field, 1); + A::Check(&Field, 1); } }; #endif |