aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/VLASizeChecker.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-06 00:44:32 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-06 00:44:32 +0000
commit2c791bd122285e1212094147454ef996dee8ebaf (patch)
tree9a894fa19124a65575596713c5c935ca214716c0 /lib/Analysis/VLASizeChecker.cpp
parent966256afd49a4af0c002046a19bb0041a507909b (diff)
Minor cleanup: use BuiltinBug (which will soon be renamed) for DeferenceChecker and friends so that they always report the same bug type.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86208 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/VLASizeChecker.cpp')
-rw-r--r--lib/Analysis/VLASizeChecker.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/VLASizeChecker.cpp b/lib/Analysis/VLASizeChecker.cpp
index 0e731902f4..6184a77cf3 100644
--- a/lib/Analysis/VLASizeChecker.cpp
+++ b/lib/Analysis/VLASizeChecker.cpp
@@ -38,8 +38,8 @@ ExplodedNode *UndefSizedVLAChecker::CheckType(QualType T, ExplodedNode *Pred,
if (ExplodedNode* N = Builder.generateNode(S, state, Pred)) {
N->markAsSink();
if (!BT)
- BT = new BugType("Declared variable-length array (VLA) uses a garbage"
- " value as its size", "Logic error");
+ BT = new BuiltinBug("Declared variable-length array (VLA) uses a "
+ "garbage value as its size");
EnhancedBugReport *R =
new EnhancedBugReport(*BT, BT->getName().c_str(), N);