[llvm] 2b418c3 - [BitcodeReader] Add missing () to disambiguate precedence. NFC

Jon Roelofs via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 28 10:08:02 PDT 2023


Author: Jon Roelofs
Date: 2023-07-28T10:07:52-07:00
New Revision: 2b418c3c00ec709b854752f15e4c5be2056ab05d

URL: https://github.com/llvm/llvm-project/commit/2b418c3c00ec709b854752f15e4c5be2056ab05d
DIFF: https://github.com/llvm/llvm-project/commit/2b418c3c00ec709b854752f15e4c5be2056ab05d.diff

LOG: [BitcodeReader] Add missing () to disambiguate precedence. NFC

Added: 
    

Modified: 
    llvm/lib/Bitcode/Reader/BitcodeReader.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 3797a44c179303..ab08b9b4f6e9dc 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -6370,7 +6370,7 @@ Error BitcodeReader::parseFunctionBody(Function *F) {
       cast<CallInst>(I)->setCallingConv(
           static_cast<CallingConv::ID>((0x7ff & CCInfo) >> bitc::CALL_CCONV));
       CallInst::TailCallKind TCK = CallInst::TCK_None;
-      if (CCInfo & 1 << bitc::CALL_TAIL)
+      if (CCInfo & (1 << bitc::CALL_TAIL))
         TCK = CallInst::TCK_Tail;
       if (CCInfo & (1 << bitc::CALL_MUSTTAIL))
         TCK = CallInst::TCK_MustTail;


        


More information about the llvm-commits mailing list