diff options
| author | Hal Finkel <hfinkel@anl.gov> | 2016-03-28 11:13:03 +0000 |
|---|---|---|
| committer | Hal Finkel <hfinkel@anl.gov> | 2016-03-28 11:13:03 +0000 |
| commit | 29f5131dafb80384874c30a2dd1fdd99638560e1 (patch) | |
| tree | a555ff402385099c53070a1352edbc60f9ac5b57 /llvm/lib/Transforms | |
| parent | 2f5d8ff14ab80b4596181ee4765f74fde740b0d6 (diff) | |
| download | bcm5719-llvm-29f5131dafb80384874c30a2dd1fdd99638560e1.tar.gz bcm5719-llvm-29f5131dafb80384874c30a2dd1fdd99638560e1.zip | |
C++11 is required, remove some preprocessor checks for it
We require C++11 to build, so remove a few remaining preprocessor checks for
'__cplusplus >= 201103L'. This should always be true.
llvm-svn: 264572
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SROA.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/SROA.cpp b/llvm/lib/Transforms/Scalar/SROA.cpp index 535a1ef7366..12fcd55b1fd 100644 --- a/llvm/lib/Transforms/Scalar/SROA.cpp +++ b/llvm/lib/Transforms/Scalar/SROA.cpp @@ -55,8 +55,8 @@ #include "llvm/Transforms/Utils/Local.h" #include "llvm/Transforms/Utils/PromoteMemToReg.h" -#if __cplusplus >= 201103L && !defined(NDEBUG) -// We only use this for a debug check in C++11 +#ifndef NDEBUG +// We only use this for a debug check. #include <random> #endif @@ -1002,7 +1002,7 @@ AllocaSlices::AllocaSlices(const DataLayout &DL, AllocaInst &AI) }), Slices.end()); -#if __cplusplus >= 201103L && !defined(NDEBUG) +#ifndef NDEBUG if (SROARandomShuffleSlices) { std::mt19937 MT(static_cast<unsigned>(sys::TimeValue::now().msec())); std::shuffle(Slices.begin(), Slices.end(), MT); |

