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

Unified Diff: lib/Transforms/NaCl/ReplacePtrsWithInts.cpp

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/Transforms/NaCl/ReplacePtrsWithInts.cpp
diff --git a/lib/Transforms/NaCl/ReplacePtrsWithInts.cpp b/lib/Transforms/NaCl/ReplacePtrsWithInts.cpp
index 0038f979df8b3961d969ccb6ca0fc60409d8a354..d1d2d179365dcb86138f0a52ee001a07800746ad 100644
--- a/lib/Transforms/NaCl/ReplacePtrsWithInts.cpp
+++ b/lib/Transforms/NaCl/ReplacePtrsWithInts.cpp
@@ -169,7 +169,7 @@ void FunctionConverter::recordConvertedAndErase(Instruction *From, Value *To) {
Value *FunctionConverter::stripNoopCasts(Value *Val) {
SmallPtrSet<Value *, 4> Visited;
for (;;) {
- if (!Visited.insert(Val)) {
+ if (!Visited.insert(Val).second) {
// It is possible to get a circular reference in unreachable
// basic blocks. Handle this case for completeness.
return UndefValue::get(Val->getType());

Powered by Google App Engine
This is Rietveld 408576698