projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7afd257
)
[OpaquePtr][LLParser] Explicitly turn off opaque pointers if we see a star
author
Arthur Eubanks
<aeubanks@google.com>
Tue, 17 May 2022 00:01:09 +0000
(17:01 -0700)
committer
Arthur Eubanks
<aeubanks@google.com>
Tue, 17 May 2022 15:40:18 +0000
(08:40 -0700)
If we turn on --opaque-pointers, tests with '*' would use opaque pointers.
Can't really test this without flipping the default value for --opaque-pointers.
Reviewed By: #opaque-pointers, nikic
Differential Revision: https://reviews.llvm.org/D125735
llvm/lib/AsmParser/LLParser.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/AsmParser/LLParser.cpp
b/llvm/lib/AsmParser/LLParser.cpp
index
c723d71
..
d6d8743
100644
(file)
--- a/
llvm/lib/AsmParser/LLParser.cpp
+++ b/
llvm/lib/AsmParser/LLParser.cpp
@@
-66,6
+66,8
@@
static void setContextOpaquePointers(LLLexer &L, LLVMContext &C) {
// explicit "ptr".
if (K == lltok::star || K == lltok::Error || K == lltok::Eof ||
isa_and_nonnull<PointerType>(L.getTyVal())) {
+ if (K == lltok::star)
+ C.setOpaquePointers(false);
return;
}
}