MaskRay added a comment.
`-fsanitize=alignment -c a.c -O[012]` no longer crashes for the test. From the
comment that the problem was up the call chain, I think we can close this
revision now.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92001/new/
https://reviews.llvm.org/D92001
___
lebedev.ri resigned from this revision.
lebedev.ri added a comment.
This revision now requires review to proceed.
Herald added a subscriber: StephenFan.
Herald added a project: All.
This review seems to be stuck/dead, consider abandoning if no longer relevant.
CHANGES SINCE LAST ACTION
https:/
lebedev.ri requested changes to this revision.
lebedev.ri added a comment.
This revision now requires changes to proceed.
@orivej please can you look where we create AST nodes for these builtins and
ensure that the "pointer" argument is actually converted into a pointer
beforehand?
I'm afraid i
aaron.ballman added inline comments.
Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:2524
// defined.
- if (Ty->getPointeeType().isVolatileQualified())
+ if (!Ty->getPointeeType().isNull() &&
Ty->getPointeeType().isVolatileQualified())
return;
lebede
lebedev.ri added inline comments.
Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:2524
// defined.
- if (Ty->getPointeeType().isVolatileQualified())
+ if (!Ty->getPointeeType().isNull() &&
Ty->getPointeeType().isVolatileQualified())
return;
vsk wrote
vsk added inline comments.
Comment at: clang/lib/CodeGen/CodeGenFunction.cpp:2524
// defined.
- if (Ty->getPointeeType().isVolatileQualified())
+ if (!Ty->getPointeeType().isNull() &&
Ty->getPointeeType().isVolatileQualified())
return;
Is the pointee t
orivej added a comment.
Could somebody review this?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92001/new/
https://reviews.llvm.org/D92001
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listin
orivej added a comment.
Sorry, I don't understand the issue and can't write a better description.
Since this test triggers an assert in getCommonPtr that it "Cannot retrieve a
NULL type pointer" of Ty->getPointeeType(), the fix just checks that the
pointee is not null before using isVolatileQual
orivej updated this revision to Diff 307239.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D92001/new/
https://reviews.llvm.org/D92001
Files:
clang/lib/CodeGen/CodeGenFunction.cpp
clang/test/CodeGen/ubsan-assume-aligned-crash.c
Index: clang/test/CodeGen/ubsan-assume-aligned-crash.c
orivej created this revision.
orivej added reviewers: lebedev.ri, Tyker, rsmith.
orivej added projects: clang, Sanitizers.
Herald added a subscriber: cfe-commits.
orivej requested review of this revision.
Fixes PR45813
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D92001
Files
10 matches
Mail list logo