summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/CheckSecuritySyntaxOnly.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-08-17 22:39:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-08-17 22:39:59 +0000
commit56df97761d214030881efbf7c32cf2cce7f9ea8e (patch)
tree2fdbf26598f4dea0136644b5791ab69f5b0a1eb5 /clang/lib/Checker/CheckSecuritySyntaxOnly.cpp
parentf346a3dd680d4b72eb6f20a7c05df09202446b80 (diff)
downloadbcm5719-llvm-56df97761d214030881efbf7c32cf2cce7f9ea8e.tar.gz
bcm5719-llvm-56df97761d214030881efbf7c32cf2cce7f9ea8e.zip
StringRef'ication of lots stuff, patch by Peter Davies!
llvm-svn: 111314
Diffstat (limited to 'clang/lib/Checker/CheckSecuritySyntaxOnly.cpp')
-rw-r--r--clang/lib/Checker/CheckSecuritySyntaxOnly.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/CheckSecuritySyntaxOnly.cpp b/clang/lib/Checker/CheckSecuritySyntaxOnly.cpp
index af85c2faee3..9dfe512dc3b 100644
--- a/clang/lib/Checker/CheckSecuritySyntaxOnly.cpp
+++ b/clang/lib/Checker/CheckSecuritySyntaxOnly.cpp
@@ -217,7 +217,7 @@ void WalkAST::CheckLoopConditionForFloat(const ForStmt *FS) {
llvm::SmallString<256> sbuf;
llvm::raw_svector_ostream os(sbuf);
- os << "Variable '" << drCond->getDecl()->getNameAsCString()
+ os << "Variable '" << drCond->getDecl()->getName()
<< "' with floating point type '" << drCond->getType().getAsString()
<< "' should not be used as a loop counter";
OpenPOWER on IntegriCloud