[compiler-rt] 6c7aebb - [msan] Fix comment of __msan::Origin::isHeapOrigin
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 14 23:59:00 PDT 2020
Author: Fangrui Song
Date: 2020-06-14T23:58:49-07:00
New Revision: 6c7aebbc01b270a144c30052f75e9f2b7dc1d4cf
URL: https://github.com/llvm/llvm-project/commit/6c7aebbc01b270a144c30052f75e9f2b7dc1d4cf
DIFF: https://github.com/llvm/llvm-project/commit/6c7aebbc01b270a144c30052f75e9f2b7dc1d4cf.diff
LOG: [msan] Fix comment of __msan::Origin::isHeapOrigin
Added:
Modified:
compiler-rt/lib/msan/msan_origin.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/msan/msan_origin.h b/compiler-rt/lib/msan/msan_origin.h
index 26a4e7eb90cd..e291f538cbd3 100644
--- a/compiler-rt/lib/msan/msan_origin.h
+++ b/compiler-rt/lib/msan/msan_origin.h
@@ -57,7 +57,7 @@ class Origin {
u32 raw_id() const { return raw_id_; }
bool isHeapOrigin() const {
- // 1xxx xxxx xxxx xxxx
+ // 0xxx xxxx xxxx xxxx
return raw_id_ >> kHeapShift == 0;
}
bool isStackOrigin() const {
More information about the llvm-commits
mailing list