[llvm] r202455 - Try to unbreak the C++11 build
Hal Finkel
hfinkel at anl.gov
Thu Feb 27 16:45:27 PST 2014
Author: hfinkel
Date: Thu Feb 27 18:45:27 2014
New Revision: 202455
URL: http://llvm.org/viewvc/llvm-project?rev=202455&view=rev
Log:
Try to unbreak the C++11 build
Cannot use negative numbers in case statements without running afoul of -Wc++11-narrowing.
Modified:
llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
Modified: llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h?rev=202455&r1=202454&r2=202455&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h (original)
+++ llvm/trunk/lib/Target/PowerPC/MCTargetDesc/PPCPredicates.h Thu Feb 27 18:45:27 2014
@@ -52,8 +52,8 @@ namespace PPC {
// When dealing with individual condition-register bits, we have simple set
// and unset predicates.
- PRED_BIT_SET = -1,
- PRED_BIT_UNSET = -2
+ PRED_BIT_SET = 1024,
+ PRED_BIT_UNSET = 1025
};
/// Invert the specified predicate. != -> ==, < -> >=.
More information about the llvm-commits
mailing list