]> granicus.if.org Git - clang/commitdiff
[Alignment][NFC] Remove StoreInst::setAlignment(unsigned)
authorGuillaume Chatelet <gchatelet@google.com>
Thu, 3 Oct 2019 13:17:21 +0000 (13:17 +0000)
committerGuillaume Chatelet <gchatelet@google.com>
Thu, 3 Oct 2019 13:17:21 +0000 (13:17 +0000)
Summary:
This is patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Reviewers: courbet, bollu, jdoerfert

Subscribers: hiraditya, asbirlea, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D68268

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@373595 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBuiltin.cpp

index f87a6d6ec4a6615317f38010935c599179566c71..527e512e6aac498bb7ce6cadcb4dadb20eeaba5a 100644 (file)
@@ -11193,7 +11193,7 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID,
     // Unaligned nontemporal store of the scalar value.
     StoreInst *SI = Builder.CreateDefaultAlignedStore(Src, BC);
     SI->setMetadata(CGM.getModule().getMDKindID("nontemporal"), Node);
-    SI->setAlignment(1);
+    SI->setAlignment(llvm::Align::None());
     return SI;
   }
   // Rotate is a special case of funnel shift - 1st 2 args are the same.