[PATCH] D109292: [RuntimeDyld] Don't use bitwise operation on SymbolRef::Type

luxufan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 7 01:58:55 PDT 2021


This revision was automatically updated to reflect the committed changes.
Closed by commit rGffcaa80f7e43: [RuntimeDyld] Don't use bitwise operation on SymbolRef::Type (authored by StephenFan).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D109292/new/

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.371009.patch
Type: text/x-patch
Size: 478 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210907/db735178/attachment.bin>


More information about the llvm-commits mailing list