diff options
-rw-r--r-- | lib/VMCore/Type.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index d2d6a2a943..875de4b635 100644 --- a/lib/VMCore/Type.cpp +++ b/lib/VMCore/Type.cpp @@ -291,7 +291,8 @@ static const std::string &getOrCreateDesc(std::map<const Type*,std::string>&Map, if (I != Map.end()) return I->second; std::vector<const Type *> TypeStack; - return Map[Ty] = getTypeDescription(Ty, TypeStack); + std::string Result = getTypeDescription(Ty, TypeStack); + return Map[Ty] = Result; } |