From 367fdd990cc60141cf10fa306e219b3c455fb273 Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Thu, 18 Feb 2016 19:45:31 +0000 Subject: Restrict scope of variables [NFC] llvm-svn: 261250 --- llvm/lib/CodeGen/AtomicExpandPass.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/AtomicExpandPass.cpp') diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp index d12fdb24698..88db509f007 100644 --- a/llvm/lib/CodeGen/AtomicExpandPass.cpp +++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp @@ -99,9 +99,9 @@ bool AtomicExpand::runOnFunction(Function &F) { assert((LI || SI || RMWI || CASI || isa(I)) && "Unknown atomic instruction"); - auto FenceOrdering = Monotonic; - bool IsStore, IsLoad; if (TLI->getInsertFencesForAtomic()) { + auto FenceOrdering = Monotonic; + bool IsStore, IsLoad; if (LI && isAtLeastAcquire(LI->getOrdering())) { FenceOrdering = LI->getOrdering(); LI->setOrdering(Monotonic); -- cgit v1.2.3