[llvm] r274961 - [CFLAA] Make a constant variable `const`. NFC.

George Burgess IV via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 20:21:25 PDT 2016

Author: gbiv
Date: Fri Jul  8 22:21:25 2016
New Revision: 274961

URL: http://llvm.org/viewvc/llvm-project?rev=274961&view=rev
[CFLAA] Make a constant variable `const`. NFC.

`const` was dropped by r274958, and the lack of `const` makes GCC6
(correctly) complain.


Modified: llvm/trunk/lib/Analysis/AliasAnalysisSummary.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasAnalysisSummary.h?rev=274961&r1=274960&r2=274961&view=diff
--- llvm/trunk/lib/Analysis/AliasAnalysisSummary.h (original)
+++ llvm/trunk/lib/Analysis/AliasAnalysisSummary.h Fri Jul  8 22:21:25 2016
@@ -98,7 +98,7 @@ AliasAttrs getExternallyVisibleAttrs(Ali
 /// The maximum number of arguments we can put into a summary.
-static unsigned MaxSupportedArgsInSummary = 50;
+LLVM_CONSTEXPR static unsigned MaxSupportedArgsInSummary = 50;
 /// We use InterfaceValue to describe parameters/return value, as well as
 /// potential memory locations that are pointed to by parameters/return value,

More information about the llvm-commits mailing list