[PATCH] D109292: [RuntimeDyld] Don't use bitwise operation on SymbolRef::Type
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 5 08:49:38 PDT 2021
StephenFan created this revision.
StephenFan added a reviewer: lhames.
Herald added a subscriber: hiraditya.
StephenFan requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109292
Files:
llvm/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
Index: llvm/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
===================================================================
--- llvm/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
+++ llvm/lib/ExecutionEngine/RuntimeDyld/JITSymbol.cpp
@@ -84,7 +84,7 @@
if (!SymbolType)
return SymbolType.takeError();
- if (*SymbolType & object::SymbolRef::ST_Function)
+ if (*SymbolType == object::SymbolRef::ST_Function)
Flags |= JITSymbolFlags::Callable;
return Flags;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109292.370810.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210905/51d1be10/attachment.bin>
More information about the llvm-commits
mailing list