[llvm-commits] [llvm] r71852 - /llvm/trunk/include/llvm/Support/ManagedStatic.h
Owen Anderson
resistor at mac.com
Fri May 15 01:07:53 PDT 2009
Author: resistor
Date: Fri May 15 03:07:23 2009
New Revision: 71852
URL: http://llvm.org/viewvc/llvm-project?rev=71852&view=rev
Log:
Fix an unfortunate typo.
Modified:
llvm/trunk/include/llvm/Support/ManagedStatic.h
Modified: llvm/trunk/include/llvm/Support/ManagedStatic.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ManagedStatic.h?rev=71852&r1=71851&r2=71852&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ManagedStatic.h (original)
+++ llvm/trunk/include/llvm/Support/ManagedStatic.h Fri May 15 03:07:23 2009
@@ -83,7 +83,7 @@
sys::MemoryFence();
InitFlag = 2;
} else if (OldFlag == 1)
- while (OldFlag == 1) ;
+ while (InitFlag == 1) ;
return *static_cast<C*>(Ptr);
}
More information about the llvm-commits
mailing list