Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(559)

Unified Diff: lib/Bitcode/NaCl/Writer/NaClValueEnumerator.h

Issue 940243003: PNaCl localmod mods in LLVM to 223109 (local files only) (Closed)
Patch Set: xx Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: lib/Bitcode/NaCl/Writer/NaClValueEnumerator.h
diff --git a/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.h b/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.h
index 86b60627cc40a88d3e075394a38f08c6acf580bf..46080df2a574a07264426452074b2eb8856dd57a 100644
--- a/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.h
+++ b/lib/Bitcode/NaCl/Writer/NaClValueEnumerator.h
@@ -121,7 +121,7 @@ public:
/// \brief Inserts the give value into the set of known function forward
/// value type refs. Returns true if the value id is added to the set.
bool InsertFnForwardTypeRef(unsigned ValID) {
- return FnForwardTypeRefs.insert(ValID);
+ return FnForwardTypeRefs.insert(ValID).second;
}
const ValueList &getValues() const { return Values; }

Powered by Google App Engine
This is Rietveld 408576698