summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCall.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:18 +0000
committerJustin Bogner <mail@justinbogner.com>2014-01-13 21:24:18 +0000
commit06bd6d04e05ee77710707ca777cbf25da4c414f5 (patch)
treeec3105be4f5bf3a0cf5082a57c570a8f3dd97893 /clang/lib/CodeGen/CGCall.cpp
parent4afcd10e085bffac50aa5ef139cb3eb2c1b295dc (diff)
downloadbcm5719-llvm-06bd6d04e05ee77710707ca777cbf25da4c414f5.tar.gz
bcm5719-llvm-06bd6d04e05ee77710707ca777cbf25da4c414f5.zip
CodeGen: Introduce CodeGenPGO::setCurrentRegionUnreachable
There are a number of places where we do PGO.setCurrentRegionCount(0) directly after an unconditional branch. Give this operation a name so that it's clearer why we're doing this. llvm-svn: 199138
Diffstat (limited to 'clang/lib/CodeGen/CGCall.cpp')
-rw-r--r--clang/lib/CodeGen/CGCall.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 4bdd032a2b9..d3121774463 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -2184,7 +2184,7 @@ void CodeGenFunction::EmitNoreturnRuntimeCallOrInvoke(llvm::Value *callee,
call->setCallingConv(getRuntimeCC());
Builder.CreateUnreachable();
}
- PGO.setCurrentRegionCount(0);
+ PGO.setCurrentRegionUnreachable();
}
/// Emits a call or invoke instruction to the given nullary runtime
OpenPOWER on IntegriCloud