[cfe-commits] r76381 - /cfe/trunk/lib/Analysis/MemRegion.cpp

Ted Kremenek kremenek at apple.com
Sun Jul 19 13:38:24 PDT 2009


Author: kremenek
Date: Sun Jul 19 15:38:24 2009
New Revision: 76381

URL: http://llvm.org/viewvc/llvm-project?rev=76381&view=rev
Log:
Implement FIXME in pretty-printing for StringRegions.

Modified:
    cfe/trunk/lib/Analysis/MemRegion.cpp

Modified: cfe/trunk/lib/Analysis/MemRegion.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/MemRegion.cpp?rev=76381&r1=76380&r2=76381&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/MemRegion.cpp (original)
+++ cfe/trunk/lib/Analysis/MemRegion.cpp Sun Jul 19 15:38:24 2009
@@ -189,9 +189,8 @@
   os << "ivar{" << superRegion << ',' << getDecl()->getNameAsString() << '}';
 }
 
-void StringRegion::dumpToStream(llvm::raw_ostream& os) const {
-  LangOptions LO; // FIXME.
-  Str->printPretty(os, 0, PrintingPolicy(LO));
+void StringRegion::dumpToStream(llvm::raw_ostream& os) const {  
+  Str->printPretty(os, 0, PrintingPolicy(getContext().getLangOptions()));
 }
 
 void SymbolicRegion::dumpToStream(llvm::raw_ostream& os) const {





More information about the cfe-commits mailing list