diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2016-08-25 01:05:08 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2016-08-25 01:05:08 +0000 |
commit | 381fc0ee3ce32583786aae1619b97cc28865015d (patch) | |
tree | 626593774835564c112e5edaa1f783a6d5cbb64b /llvm/lib/Analysis/MemoryBuiltins.cpp | |
parent | 1804a77b2a70dea81cc21b171febcc9df9cc1274 (diff) | |
download | bcm5719-llvm-381fc0ee3ce32583786aae1619b97cc28865015d.tar.gz bcm5719-llvm-381fc0ee3ce32583786aae1619b97cc28865015d.zip |
Make some LLVM_CONSTEXPR variables const. NFC.
This patch changes LLVM_CONSTEXPR variable declarations to const
variable declarations, since LLVM_CONSTEXPR expands to nothing if the
current compiler doesn't support constexpr. In all of the changed
cases, it looks like the code intended the variable to be const instead
of sometimes-constexpr sometimes-not.
llvm-svn: 279696
Diffstat (limited to 'llvm/lib/Analysis/MemoryBuiltins.cpp')
-rw-r--r-- | llvm/lib/Analysis/MemoryBuiltins.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp index f23477622be..d7fcb0fccb8 100644 --- a/llvm/lib/Analysis/MemoryBuiltins.cpp +++ b/llvm/lib/Analysis/MemoryBuiltins.cpp @@ -114,7 +114,7 @@ static Optional<AllocFnsTy> getAllocationData(const Value *V, AllocType AllocTy, // MallocLike is chosen here because allocsize makes no guarantees about the // nullness of the result of the function, nor does it deal with strings, nor // does it require that the memory returned is zeroed out. - LLVM_CONSTEXPR auto AllocSizeAllocTy = MallocLike; + const AllocType AllocSizeAllocTy = MallocLike; if ((AllocTy & AllocSizeAllocTy) == AllocSizeAllocTy && Callee->hasFnAttribute(Attribute::AllocSize)) { Attribute Attr = Callee->getFnAttribute(Attribute::AllocSize); |