[llvm] cb37cf6 - [NFC] Remove dead code

Guillaume Chatelet via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 04:57:44 PST 2023


Author: Guillaume Chatelet
Date: 2023-01-16T12:57:13Z
New Revision: cb37cf6161ecaf183b96c0d3814198c768e3d516

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

LOG: [NFC] Remove dead code

Added: 
    

Modified: 
    llvm/include/llvm/IR/IntrinsicInst.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/IR/IntrinsicInst.h b/llvm/include/llvm/IR/IntrinsicInst.h
index 2f5b4cfc05e1..cc48d3d362b5 100644
--- a/llvm/include/llvm/IR/IntrinsicInst.h
+++ b/llvm/include/llvm/IR/IntrinsicInst.h
@@ -914,17 +914,13 @@ template <class BaseCL> class MemTransferBase : public BaseCL {
     BaseCL::setArgOperand(ARG_SOURCE, Ptr);
   }
 
-  /// FIXME: Remove this function once transition to Align is over.
-  /// Use the version that takes MaybeAlign instead of this one.
-  void setSourceAlignment(unsigned Alignment) {
-    setSourceAlignment(MaybeAlign(Alignment));
-  }
   void setSourceAlignment(MaybeAlign Alignment) {
     BaseCL::removeParamAttr(ARG_SOURCE, Attribute::Alignment);
     if (Alignment)
       BaseCL::addParamAttr(ARG_SOURCE, Attribute::getWithAlignment(
                                            BaseCL::getContext(), *Alignment));
   }
+
   void setSourceAlignment(Align Alignment) {
     BaseCL::removeParamAttr(ARG_SOURCE, Attribute::Alignment);
     BaseCL::addParamAttr(ARG_SOURCE, Attribute::getWithAlignment(


        


More information about the llvm-commits mailing list