[PATCH] Change the LLVM global lock to use RAII semantics

David Majnemer david.majnemer at gmail.com
Fri Jun 13 16:53:55 PDT 2014


================
Comment at: include/llvm/Support/Threading.h:21
@@ +20,3 @@
+  /// llvm_get_global_lock - returns the llvm global lock object.
+  sys::Mutex& llvm_get_global_lock();
+
----------------
The `&` should bind to the function name, not the return type.

http://reviews.llvm.org/D4142






More information about the llvm-commits mailing list