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

Unified Diff: src/IceIntrinsics.cpp

Issue 1766233002: Subzero: Fix symbol name mangling. Make flags global. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Cleanup Created 4 years, 9 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: src/IceIntrinsics.cpp
diff --git a/src/IceIntrinsics.cpp b/src/IceIntrinsics.cpp
index 94e582fa083a96c0aa3480678b4de7e81905d4f2..748aeb1e37a1c79e607c4f28b1221b4776473a3a 100644
--- a/src/IceIntrinsics.cpp
+++ b/src/IceIntrinsics.cpp
@@ -236,7 +236,7 @@ const Intrinsics::FullIntrinsicInfo *Intrinsics::find(const IceString &Name,
Error = false;
if (Name.substr(0, LLVMPrefixLen) != LLVMPrefix)
return nullptr;
- IceString NameSuffix = Name.substr(LLVMPrefixLen);
+ const IceString NameSuffix = Name.substr(LLVMPrefixLen);
John 2016/03/06 22:39:38 Reference?
Jim Stichnoth 2016/03/07 00:03:10 std::string::substr() returns a newly constructed
John 2016/03/07 16:41:08 same comment about const reference. :)
auto it = Map.find(NameSuffix);
if (it == Map.end()) {
Error = true;

Powered by Google App Engine
This is Rietveld 408576698