aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/ArrayBoundChecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Checker/ArrayBoundChecker.cpp')
-rw-r--r--lib/Checker/ArrayBoundChecker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/ArrayBoundChecker.cpp b/lib/Checker/ArrayBoundChecker.cpp
index 98345bd703..cf2a2fcf62 100644
--- a/lib/Checker/ArrayBoundChecker.cpp
+++ b/lib/Checker/ArrayBoundChecker.cpp
@@ -51,7 +51,7 @@ void ArrayBoundChecker::VisitLocation(CheckerContext &C, const Stmt *S, SVal l){
return;
// Get the index of the accessed element.
- DefinedOrUnknownSVal &Idx = cast<DefinedOrUnknownSVal>(ER->getIndex());
+ DefinedOrUnknownSVal Idx = cast<DefinedOrUnknownSVal>(ER->getIndex());
const GRState *state = C.getState();