[all-commits] [llvm/llvm-project] 8f66f2: [RDA] Avoid negative shift UB
Nikita Popov via All-commits
all-commits at lists.llvm.org
Thu Apr 9 01:03:16 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 8f66f25f52f9b4089d216a33283acdb87ea3c250
https://github.com/llvm/llvm-project/commit/8f66f25f52f9b4089d216a33283acdb87ea3c250
Author: Nikita Popov <nikita.ppv at gmail.com>
Date: 2020-04-09 (Thu, 09 Apr 2020)
Changed paths:
M llvm/include/llvm/CodeGen/ReachingDefAnalysis.h
Log Message:
-----------
[RDA] Avoid negative shift UB
Avoid "left shift of negative value -1" ubsan errors by casting
to uintptr_t before performing the shift, rather than after.
More information about the All-commits
mailing list