summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPDirectives.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-02 13:02:01 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-02 13:02:01 +0000
commit06dde92cd6a9659c0786164688002d912fd22a32 (patch)
treea60d999973177ae4370815c8cee8b11d552b9d65 /clang/lib/Lex/PPDirectives.cpp
parent867ea1d42604259bb1e93932a59502e7944d3f49 (diff)
downloadbcm5719-llvm-06dde92cd6a9659c0786164688002d912fd22a32.tar.gz
bcm5719-llvm-06dde92cd6a9659c0786164688002d912fd22a32.zip
[C++11] Switch from LLVM_STATIC_ASSERT to static_assert now that we
require host toolchains which support this. llvm-svn: 202640
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r--clang/lib/Lex/PPDirectives.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index 4a9e09f798e..050ade45e44 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -60,8 +60,8 @@ MacroInfo *Preprocessor::AllocateMacroInfo(SourceLocation L) {
MacroInfo *Preprocessor::AllocateDeserializedMacroInfo(SourceLocation L,
unsigned SubModuleID) {
- LLVM_STATIC_ASSERT(llvm::AlignOf<MacroInfo>::Alignment >= sizeof(SubModuleID),
- "alignment for MacroInfo is less than the ID");
+ static_assert(llvm::AlignOf<MacroInfo>::Alignment >= sizeof(SubModuleID),
+ "alignment for MacroInfo is less than the ID");
DeserializedMacroInfoChain *MIChain =
BP.Allocate<DeserializedMacroInfoChain>();
MIChain->Next = DeserialMIChainHead;
OpenPOWER on IntegriCloud