summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-10-27 21:01:01 +0000
committerDouglas Gregor <dgregor@apple.com>2009-10-27 21:01:01 +0000
commit35b5753e1797f919f61066bfabe3b0b35c8e91c1 (patch)
tree5310c7ea560a5f16b1e8dcbfed5141184966af5d /clang/lib/Sema/SemaDecl.cpp
parentafca3b4a5c85b000ce7fe5ebf8518bbb63edb91b (diff)
downloadbcm5719-llvm-35b5753e1797f919f61066bfabe3b0b35c8e91c1.tar.gz
bcm5719-llvm-35b5753e1797f919f61066bfabe3b0b35c8e91c1.zip
Rename FunctionDecl::isInline/setInline to
FunctionDecl::isInlineSpecified/setInlineSpecified. llvm-svn: 85305
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 36f95a455a9..48b5c2838e0 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/lib/Sema/SemaDecl.cpp
@@ -3102,7 +3102,7 @@ void Sema::CheckMain(FunctionDecl* FD) {
// C99 6.7.4p4: In a hosted environment, the inline function specifier
// shall not appear in a declaration of main.
// static main is not an error under C99, but we should warn about it.
- bool isInline = FD->isInline();
+ bool isInline = FD->isInlineSpecified();
bool isStatic = FD->getStorageClass() == FunctionDecl::Static;
if (isInline || isStatic) {
unsigned diagID = diag::warn_unusual_main_decl;
OpenPOWER on IntegriCloud