]> granicus.if.org Git - clang/commit
DiagnosticIds: Fix offset/ID calculation, no impact outside this code.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 2 Jan 2013 22:26:07 +0000 (22:26 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Wed, 2 Jan 2013 22:26:07 +0000 (22:26 +0000)
commit35abfcd3285ad82fa269b8f2468dee01a4dceb52
tree7d74707fb1d60ef04ec70d654ac2e39a28d53b19
parent28c1f7524ca221fa206d547bea959049e6291093
DiagnosticIds: Fix offset/ID calculation, no impact outside this code.

Patch by Will Dietz:

Minor touchup so the values of Offset/ID reflect their intention.
Previously, the sum (Offset+ID) was correct, but Offset/ID
individually were wrong.

Caught by investigating unsigned overflow reported by -fsanitize=integer.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171421 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Basic/DiagnosticIDs.cpp