[Openmp-commits] [PATCH] D22135: Formatting: added parentheses to eliminate warnings from fresh perl versions.

Andrey Churbanov via Openmp-commits openmp-commits at lists.llvm.org
Fri Jul 8 07:10:53 PDT 2016


AndreyChurbanov created this revision.
AndreyChurbanov added reviewers: tlwilmar, jlpeyton, hbae.
AndreyChurbanov added a subscriber: openmp-commits.
AndreyChurbanov set the repository for this revision to rL LLVM.

Formatting: added parentheses to eliminate warnings from fresh perl versions. Also eliminated extra spaces.

Repository:
  rL LLVM

http://reviews.llvm.org/D22135

Files:
  runtime/tools/lib/LibOMP.pm

Index: runtime/tools/lib/LibOMP.pm
===================================================================
--- runtime/tools/lib/LibOMP.pm
+++ runtime/tools/lib/LibOMP.pm
@@ -17,7 +17,7 @@
 
 sub empty($) {
     my ( $var ) = @_;
-    return not exists( $ENV{ $var } ) or not defined( $ENV{ $var } ) or $ENV{ $var } eq "";
+    return (not exists($ENV{$var})) or (not defined($ENV{$var})) or ($ENV{$var} eq "");
 }; # sub empty
 
 my ( $base, $out, $tmp );


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22135.63216.patch
Type: text/x-patch
Size: 453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160708/4ca861a7/attachment.bin>


More information about the Openmp-commits mailing list